using System; using System.Linq; using System.Collections.Generic; class Program { static void Main() { int[] memo = new int[7]; int n = int.Parse(Console.ReadLine()); int[] L = Console.ReadLine().Split().Select(int.Parse).ToArray(); for (int i = 0; i < n; i++) { memo[L[i]]++; } int max = 0; int eval = 0; for (int i = 1; i <= 6; i++) { if (max <= memo[i]) { max = memo[i]; eval = i; } } Console.WriteLine(eval); } }