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