import java.util.*; public class no275{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String n = sc.nextLine(); long N = Long.parseLong(n); String input = sc.nextLine(); String[] a = input.split("[ ]"); long sum = 0; for(int i = 0; i < a.length; i++){ sum += Long.parseLong(a[i]); } System.out.println(sum); } }