I can't find the problem here, when I Verify, it says "Be sure that the program works correctly with negative numbers." and it does.
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 lala = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(lala.readLine());
int b = Integer.parseInt(lala.readLine());
int c = Integer.parseInt(lala.readLine());
int d = Integer.parseInt(lala.readLine());
if (b >= a) {
a = b;
if (c >= a) {
a = c;
if (d >= a) {
a = d;
}
}
}
System.out.println(a);
}
}