import java.util.Scanner; public class Solution { static int maxval=0; static int arr[]=new int[10000000]; public static void main(String[] args) throws Exception{ // BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); for (int i = 0; i < N; i++) { // System.out.println("hello world"); int x=scanner.nextInt(); arr[x]= arr[x]+1; if(maxval