import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Arrays; public class Main { public static void main(String... args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(reader.readLine()); System.out.println(Arrays.stream(reader.readLine().split(" ")).mapToLong(Long::parseLong).sum()); } }