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++){ long b = sc.nextInt(); x += b; if(i == a){ System.out.println(x); } } } }