Почему выводится 3 переменные, ведь должна выводиться 1.
package com.javarush.task.task04.task0419;
/*
Максимум четырех чисел
*/
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 a = Integer.parseInt(reader.readLine());
int b = Integer.parseInt(reader.readLine());
int c = Integer.parseInt(reader.readLine());
int d = Integer.parseInt(reader.readLine());
if (a >= b || a >= c || a >= d)
{
System.out.println(a);
}
if (b >= a || b >= c || b >= d)
{
System.out.println(b);
}
if (c >= b || c >= a || c >= d)
{
System.out.println(c);
}
if (d >= b || d >= c || d >= a)
{
System.out.println(d);
}
}
}