Не проходит последний пункт
package com.javarush.task.task04.task0419;
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));
String one = reader.readLine();
String two = reader.readLine();
String three = reader.readLine();
String four = reader.readLine();
int a = Integer.parseInt(one);
int b = Integer.parseInt(two);
int c = Integer.parseInt(three);
int d = Integer.parseInt(four);
if (a>b && a>c && a>d)
System.out.println(a);
else if (b>c && b>d && b>a)
System.out.println(b);
else if (c>d && c>a && c>b)
System.out.println(c);
else if (d>a && d>b && d>c)
System.out.println(d);
else if (a==b && a==c && a==d)
System.out.println(a);
}
}