import java.io.*; import java.lang.*; import java.util.*; public class Solve { public static void main(String[] args) throws Exception { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(in.readLine()); long sum = 0L; for (int i = 0; i < n; i++) { sum += Long.parseLong(in.readLine()); } System.out.println(sum); } }