import java.util.Scanner; public class Nsum { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); long x[] = new long[a]; long sum = 0; for (int i = 0 ; i < a ; i++){ x[i] = sc.nextInt(); sum += x[i]; } System.out.println(sum); } }