i need a clue for the last condition?
package com.codegym.task.task04.task0441;
/*
Somehow average
*/
import java.io.*;
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());//write your code here
int b = Integer.parseInt(reader.readLine());
int c = Integer.parseInt(reader.readLine());
if(b>a && a>c || c>a && a>b){
System.out.print(a);
}
if(a>b && b>c || c>b && b>a){
System.out.print(b);
}
if(a>c && c>b || b>c && c>a){
System.out.print(c);
}
if(a==b && b==c || c==b && b==a){
System.out.print(a);
}
}
}