what wrong
package com.codegym.task.task04.task0419;
/*
Maximum of four numbers
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
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 > d && a > b && a > c )
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);
}
}