Import java.util.Scanner; public class ConsoleSummator { static Scanner in = new Scanner(System.in); public static void main(String[] args){ int n = in.nextInt(); int sum = 0; for (int i = 1; i <= n; i++) { int number = in.nextInt(); sum += number; } System.out.println(sum); } }
public class ConsoleSummator {
static Scanner in = new Scanner(System.in);
public static void main(String[] args){
int n = in.nextInt();
int sum = 0;
for (int i = 1; i <= n; i++) {
int number = in.nextInt();
sum += number;
}
System.out.println(sum);
}
}