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]; for(int types_i=0; types_i < n; types_i++){ types[types_i] = in.nextInt(); } int max_type; int max_no; int no; // your code goes here Hashtable birdByTypes = new Hashtable (); birdByTypes.put(1,0); birdByTypes.put(2,0); birdByTypes.put(3,0); birdByTypes.put(4,0); birdByTypes.put(5,0); for(int i =0;imax_no) { max_type = 2; max_no = no; } no = birdByTypes.get(3); if (no>max_no) { max_type = 3; max_no = no; } no = birdByTypes.get(4); if (no>max_no) { max_type = 4; max_no = no; } no = birdByTypes.get(5); if (no>max_no) { max_type = 5; max_no = no; } System.out.println(max_type); } }