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[] birdsArray = Array.ConvertAll(types_temp,Int32.Parse); List birdsTypeList = new List(new int[5]) {}; for (int i = 0; i < birdsArray.Length; i++) { switch (birdsArray[i]) { case 1: birdsTypeList[0]++; break; case 2: birdsTypeList[1]++; break; case 3: birdsTypeList[2]++; break; case 4: birdsTypeList[3]++; break; case 5: birdsTypeList[4]++; break; default: break; } } Console.WriteLine(birdsTypeList.IndexOf(birdsTypeList.Max()) + 1); } }