Почему у меня не выполняется 4-е условие ?
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 q = reader.readLine();
int a = Integer.parseInt(q);
String w = reader.readLine();
int b = Integer.parseInt(w);
String e = reader.readLine();
int c = Integer.parseInt(e);
String r = reader.readLine();
int d = Integer.parseInt(r);
if (a >= b && a >= c && a >= d){
System.out.print(a);
}if (b >= a && b >= c && b >= d){
System.out.print(b);
}if (c >= a && c >= b && c >= d){
System.out.print(c);
}if (d >= a && d >= b && d >= c){
System.out.print(d);
}if(a == b && b == c && c == d) {
System.out.print(a);
}else{}
}
}