using System; public class Program { public static void Main(string[] args) { Console.ReadLine(); // n string[] s = Console.ReadLine().Split(' '); int[] levels = new int[6]; for (int i = 0; i < s.Length; i++) { levels[int.Parse(s[i]) - 1]++; } int max = 0; int level = 0; for (int i = 0; i < levels.Length; i++) { if (levels[i] >= max) { max = levels[i]; level = i + 1; } } Console.WriteLine(level); } }