не могу разобраться...
package com.javarush.task.task04.task0441;
import java.io.BufferedReader;
import java.io.InputStreamReader;
/*
Как-то средненько
*/
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(r.readLine());
int b = Integer.parseInt(r.readLine());
int c = Integer.parseInt(r.readLine());
if(a < b && a > c || a == b || a == c){
System.out.print(a);
}
else if(b < a && b > c || b == a || b == c){
System.out.print(b);
}
else if(c < a && c > b || c == a || c == b){
System.out.print(c);
}
}
}