Help
package com.javarush.task.task04.task0441;
import java.io.*;
import java.util.*;
/*
Как-то средненько
*/
public class Solution {
public static void main(String[] args) throws Exception {
//напишите тут ваш код
Scanner scan = new Scanner(System.in);
int a = scan.nextInt();
int b = scan.nextInt();
int c = scan.nextInt();
if (b > a && a < c ) // 7> 5 5< 10 to 7
System.out.println(b);
else if (a > b && b < c) // 5 > 7 7 < 10 to 5
System.out.println(a);
else if (c > b && c < a) // 10 > 7 10 < 5 to 10
System.out.println(c);
else if (b == c && a == b && a == c) // 7 = 10 5 = 7 5 = 10 to 10
System.out.println(c);
}
}