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[] birds = new int[5]; for(int types_i=0; types_i < n; types_i++){ int next = in.nextInt(); switch (next){ case 1: birds[0]++; break; case 2: birds[1]++; break; case 3: birds[2]++; break; case 4: birds[3]++; break; case 5: birds[4]++; break; default: break; } } int max = -1; int currentMax = 0; for (int i=0; i max){ max = birds[i]; currentMax = i+1; } } System.out.println(currentMax); // your code goes here } }