using System; using System.Collections.Generic; using System.IO; using System.Linq; class Solution { static void Main(String[] args) { int n = Convert.ToInt32(Console.ReadLine()); string[] types_temp = Console.ReadLine().Split(' '); int[] types = Array.ConvertAll(types_temp,Int32.Parse); // your code goes here Dictionary dict = new Dictionary(); for(int i = 1; i <= 5; i++) { dict.Add(i, 0); } foreach(int num in types) { dict[num]++; } int highest = dict[1]; int index = 1; for(int i = 2; i <= 5; i++) { if(highest < dict[i]) { highest = dict[i]; index = i; } } Console.WriteLine(index); } }