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 int[] typec={0,0,0,0,0}; foreach(int type in types) { switch(type) { case 1:typec[0]++;break; case 2:typec[1]++;break; case 3:typec[2]++;break; case 4:typec[3]++;break; case 5:typec[4]++;break; default:break; } } int max=0; int result=0; for(int i=0;i<5;i++) { if(typec[i]>max) { max=typec[i]; result=i+1; } } Console.WriteLine(result); } }