Друзья, где ошибка?
package com.javarush.task.task05.task0529;
import java.io.*;
/*
Консоль-копилка
*/
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int sum = 0;
int x = 0;
String s = reader.readLine();
while (true) {
if (s.equals("сумма")) {
break;
}
else {
x = Integer.parseInt(s);
sum += x;
}
}
System.out.println(sum);
}
}