using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace lecture { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int[] syamu = Console.ReadLine().Trim().Split(' ').Select(x => int.Parse(x)).ToArray(); int []count = new int [6]; for (int i = 1; i <= 6; i++) { for (int j = 0; j < 6; j++) { if (syamu[j] == i) { count[i]++; } } } int max = count.Max(); for(int i = 6;i > 0;i--) { if (count[i] == max) { Console.WriteLine(count[i]); break; } } } } }