подскажите почему не проходит проверку по третьему условию
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 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 min =0;
{
if(a<b && b>c || a>b && b<c)
min=b;
if(a<b && b>c || a>b && c>b)
min=c;
if(a>c && b>c || a>b && b<c)
min=a;
if(a>c && b<c)
min=c;
if(a==b && b<c || a>b && b==c || a<b && b==c || a>=b && b>c)
min=b;
if(a==c && c<b)
min=c;
if(a==b && b==c)
min=c;
System.out.println(min);
}
}
}