Почему не проходит валидацию, хотя все работает как надо?
package com.javarush.task.task04.task0419;
/*
Максимум четырех чисел
*/
import java.io.*;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int d = sc.nextInt();
if ((a + b) > (c + d)) {
if (a >= b)
System.out.println(a);
else
System.out.println(b);
}
else if (c >= d)
System.out.println(c);
else
System.out.println(d);
}
}