import java.util.Scanner; import java.util.ArrayList; public class Test{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); ArrayList list = new ArrayList(); int n = sc.nextInt(); while(sc.hasNext()){ list.add(sc.nextLong()); } long sum = 0; for(int i=0; i<=n; i++){ sum += list.get(i); } System.out.println(sum); } }