import java.util.Arrays; import java.util.Collections; import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner scan=new Scanner(System.in); int n,ans=0,cnt=0,N,a=1; n=Integer.parseInt(scan.next()); N=n; Integer[] A=new Integer[n]; for(int i=0;i