WTF
package com.javarush.task.task04.task0442;
/*
Суммирование
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int s = 0;
while (true) {
int q = Integer.parseInt(reader.readLine());
s = s + q;
if (q == -1); {
System.out.println(s);
break;
}
}
}
}