import java.math.*; import java.util.*; public class Main { static boolean check(int a,int b,int c){ if((a>b && b>c) || (a