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()); String[] lines = in.readLine().split(" "); long sum = 0L; for (int i = 0; i < n; i++) { sum += Long.parseLong(lines[i]); } System.out.println(sum); } }