import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int[] num = new int[n];
for(int i = 0; i < n; i++) {
num[i] = scan.nextInt();
}
int sum = 0;
for(int i = 0; i < num.length; i++) {
sum += num[i];
}
System.out.println(sum);
}
}