I think I have tested every scenario and they all appear to be working correctly. Can anyone give me a hint as to what I am doing wrong?
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 br = new BufferedReader(new InputStreamReader(System.in));
int a,b,c;
a = Integer.parseInt(br.readLine());
b = Integer.parseInt(br.readLine());
c = Integer.parseInt(br.readLine());
if ((b>=a && c<=a) || (c>=a && b<=a))
System.out.print(a);
else if ((a>=b && c<=b) || (c>=b && a<=b))
System.out.print(b);
else
System.out.print(c);
}
}