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