import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc1= new Scanner(System.in); int N = sc1.nextInt(); int sum =0; for(int i=1 ; i<=N ; i++){ Scanner sc2 = new Scanner(System.in); int An = sc2.nextInt(); sum += An; } System.out.println(sum); } }