try {
int sum = 0;
int[] aa = new int[10];
for (int i = 1; i <= 10; i++) {
Scanner cin = new Scanner(System.in);
int n = cin.nextInt();
aa[i - 1] = n;
sum = sum + n;
}
System.out.println("sum=" + sum);
} catch (Exception e) {
e.printStackTrace();
}