I have made changes, but still doesn't working:(
package com.codegym.task.task04.task0441;
/*
Somehow average
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String a1 = reader.readLine();
String b1 = reader.readLine();
String c1 = reader.readLine();
int a = Integer.parseInt(a1);
int b = Integer.parseInt(b1);
int c = Integer.parseInt(c1);
if ((a < b) && (b < c)){
System.out.println(b);
}else if ((b < a) && (a < c)){
System.out.println(a);
}else if ((a < c) && (c < b)){
System.out.println(c);
}else if((a == b) || (a == c)){
System.out.println(a);
}else if (b == c){
System.out.println(b);
}
}
}