import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { public static boolean check(int []x){ int num = x[0]; for(int i=1;i