Задача выполняется в IJ идеально, а вот в компиляторе JAVARUSH вылетает с неизвестной ошибкой!
package com.javarush.task.jdk13.task04.task0441;
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 b = Integer.parseInt(reader.readLine());
int c = Integer.parseInt(reader.readLine());
int x = 0;
int y = 0;
int d = a + b + c;
if (a < b && a < c) x = a;
else if (b < a && b < c) x = b;
else if (c < a && c < b) x = c;
if (a > b && a > c) y = a;
else if (b > a && b > c) y = b;
else if (c > a && c > b) y = c;
if (a == b && b == c)
{ System.out.println(a|b|c);
System.exit(0);
}
else if (a == b && a!= c)
{System.out.println(a|b);
System.exit(0);}
else if (b == c && a!= c)
{ System.out.println(c|b);
System.exit(0);}
else if (a == c && b!= c)
{ System.out.println(c|a);
System.exit(0);}
int z = d - (x + y);
System.out.println(z);
}
}