Не проходит проверку
package com.javarush.task.task04.task0419;
/*
Максимум четырех чисел
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String a = reader.readLine();
String b = reader.readLine();
String c = reader.readLine();
String d = reader.readLine();
int a1 = Integer.parseInt(a);
int b1 = Integer.parseInt(b);
int c1 = Integer.parseInt(c);
int d1 = Integer.parseInt(d);
if (a1 == b1 && b1 == c1 && c1 == d1) System.out.println(c1);
if (a1 == b1 && b1 == c1 && c1 != d1) System.out.println(a1);
if (a1 == b1 && b1 != c1 && c1 != d1) System.out.println(a1);
if (a1 > b1 && a1 > c1 && a1 > d1) System.out.println(a1);
if (b1 > a1 && b1 > c1 && b1 > d1) System.out.println(b1);
if (c1 > a1 && c1 > b1 && c1 > d1) System.out.println(c1);
if (d1 > a1 && d1 > b1 && d1 > c1) System.out.println(d1);
//напишите тут ваш код
}
}
package com.javarush.task.task04.task0419;
/*
Максимум четырех чисел
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String a = reader.readLine();
String b = reader.readLine();
String c = reader.readLine();
String d = reader.readLine();
int a1 = Integer.parseInt(a);
int b1 = Integer.parseInt(b);
int c1 = Integer.parseInt(c);
int d1 = Integer.parseInt(d);
if (a1 == b1 && b1 == c1 && c1 == d1) System.out.println(c1);
if (a1 == b1 && b1 == c1 && c1 != d1) System.out.println(a1);
if (a1 == b1 && b1 != c1 && c1 != d1) System.out.println(a1);
if (a1 > b1 && a1 > c1 && a1 > d1) System.out.println(a1);
if (b1 > a1 && b1 > c1 && b1 > d1) System.out.println(b1);
if (c1 > a1 && c1 > b1 && c1 > d1) System.out.println(c1);
if (d1 > a1 && d1 > b1 && d1 > c1) System.out.println(d1);
//напишите тут ваш код
}
}