using System; using System.Linq; namespace No79_1{ public class Program{ public static void Main(string[] args){ Console.ReadLine(); var input = Console.ReadLine().Split().ToList().ConvertAll(int.Parse); var count = new int[7]; for(var i = 1; i <= 6; i++) foreach(var x in input) count[x]++; var max = count.Max(); for(var i = 6; i >= 1; i--){ if(count[i] == max){ Console.WriteLine(i); break; } } } } }