import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); int[] types = new int[n]; int[] temp = new int[n]; int temp2 = 0,count=0,max=0,ans=0; for(int i=0; i < n; i++){ types[i] = in.nextInt(); } // your code goes here for(int i=0; i < n; i++){ temp[i] = types[i]; } for(int i=1; i <=5 ; i++) { count = 0; for(int j=0; j max) { max = count; ans = i; } } System.out.println(ans); } }