Ругается что -1 не учитывается, но оно учитывается, что не так?
package com.javarush.task.task04.task0442;
/*
Суммирование
*/
import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader (System.in));
String num1 = reader.readLine();
String num2 = reader.readLine();
String num3 = reader.readLine();
String num4 = reader.readLine();
String num5 = reader.readLine();
int a = Integer.parseInt(num1);
int b = Integer.parseInt(num2);
int c = Integer.parseInt(num3);
int d = Integer.parseInt(num4);
int e = Integer.parseInt(num5);
do {
System.out.println(a + b + c + d + e);
break;
} while (e == -1);
}
}