Почему выдает ошибку?
package com.javarush.task.task06.task0622;
import java.io.BufferedReader;
import java.io.InputStreamReader;
/*
Числа по возрастанию
*/
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
//напишите тут ваш код
int a = Integer.parseInt(reader.readLine());
int b = Integer.parseInt(reader.readLine());
int c = Integer.parseInt(reader.readLine());
int d = Integer.parseInt(reader.readLine());
int e = Integer.parseInt(reader.readLine());
for(int i=0; i < a+b+c+d+e; i++) {
while ( i==a || i==b || i==c || i==d || i==e ) {
System.out.println(i);break;
}
}
// if (a < b && b < c)
// System.out.println(a + " " + b + " " + c);
// else if (a < c && c < b)
// System.out.println(a + " " + c + " " + b);
// else if (b < a && a < c)
// System.out.println(b + " " + a + " " + c);
// else if (b < c && c < a)
// System.out.println(b + " " + c + " " + a);
// else if (c < a && a < b)
// System.out.println(c + " " + a + " " + b);
// else if (c < b && b < a)
// System.out.println(c + " " + b + " " + a);
}
}