import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ class Goukei2 { public static void main (String[] args) throws java.lang.Exception { // your code goes here long sum = 0; long m; Scanner sc = new Scanner(System.in); int n = sc.nextInt(); for(int i=0;i<=n;i++){ m = sc.nextLong(); sum += m; } System.out.println(sum); } }