Having trouble locating what exactly is wrong with my code. Help would be appreciated. Thanks.
package com.codegym.task.task04.task0419;
/*
Maximum of four numbers
*/
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 e = Integer.parseInt(a);
int f = Integer.parseInt(b);
int g = Integer.parseInt(c);
int h = Integer.parseInt(d);
if ((e >= f) && (e >= g) && (e >= g))
System.out.println(e);
else if ((f >= e) && (f >= g) && (f >= h))
System.out.println(f);
else if ((g >= e) && (g >= f) && (g >= h))
System.out.println(g);
else if ((h >= e) && (h >= f) && (h >= g))
System.out.println(h);
else
System.out.println(e); //Displaying e if numbers equal to each other.
}
}