Что не так. думаю в последнем else if что то надо другое прописать
package com.javarush.task.task04.task0419;
import java.io.BufferedReader;
import java.io.InputStreamReader;
/*
Максимум четырех чисел
*/
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 s = Integer.parseInt(reader.readLine());
int d = Integer.parseInt(reader.readLine());
int f = Integer.parseInt(reader.readLine());
if (a>s & a>d & a>f)
System.out.println(a);
else if (s>a & s>d & s>f)
System.out.println(s);
else if (d>a & d>s & d>f)
System.out.println(d);
else if (f>a & f>d & f>s)
System.out.println(f);
else if(a==s | a==d | a==f | s==d | s==f | d==f)
System.out.println(a);
}
}