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