import java.util.Scanner; public class Main{ public static void main (String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] a = new int[n]; int[] b = new int[11]; int m = 0; for(int i = 0; i < n; i++) { a[i] = sc.nextInt(); b[a[i]]++; } for(int i = 1 ; i < 11; i++ ) { if(b[i] > b[m]){ m = i; } } System.out.print(m); } } /************************************************************** Problem: 1883 User: admin Language: Java Result: Accepted Time:805 ms Memory:40064 kb ****************************************************************/