using System; namespace yukicoder { class Program { static void Main(string[] args) { int a = int.Parse(Console.ReadLine()); string[] s = Console.ReadLine().Trim().Split(' '); int b; int[] c = new int[6]; int ans = 0; int count = 0; for (int i = 0; i < a; i++) { b = int.Parse(s[i]); for (int j = 0; j < 6; j++) { if (b == j+1) { c[j]++; } } } for(int x=0;x<6;x++) if (c[x] >= count) { ans = x; count = c[x]; } Console.WriteLine(ans + 1); } } }