import java.util.Scanner; import java.util.Arrays; public class a{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a=sc.nextInt(); int num[]=new int[a]; int flg=0, sub=0; for(int i=0; i