import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { public static int findMax(int[] arr){ int max = Integer.MIN_VALUE; for(int x:arr){ max = x>max?x:max; } return max; } public static int findMin(int[] arr){ int min = Integer.MAX_VALUE; for(int x:arr){ min = x=min && x<=max); } public static void main(String[] args) { /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */ Scanner scan = new Scanner(System.in); int q = scan.nextInt(); for(int qi = 0; qi