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[] height_temp = Console.ReadLine().Split(' '); int[] height = Array.ConvertAll(height_temp, Int32.Parse); int[] arr = new int[5]; int count = -1; int index = -1; for (int i = 0; i < n; i++) { arr[height[i] - 1] = arr[height[i] - 1] + 1; } for (int i = 0; i < 5; i++) { if (count < arr[i]) { count = arr[i]; index = i; } } Console.WriteLine(index + 1); } }