Программа вроде бы работает корректно, но валидатору что - то не нравится, помогите найти причину...
package com.javarush.task.task04.task0441;
/*
Как-то средненько
*/
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));
int q = Integer.parseInt(reader.readLine());
int w = Integer.parseInt(reader.readLine());
int e = Integer.parseInt((reader.readLine()));
if (q <= w && w <= e)
System.out.println(w);
else if ( q <= e && e <= w)
System.out.println(e);
else if ( w <= q && q <= e )
System.out.println(q);
else if ( w == q )
System.out.println(w);
else if ( w == e)
System.out.println(w);
else if ( q == e)
System.out.println(e);
//напишите тут ваш код
}
}