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