import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] a) { Scanner s=new Scanner(System.in); s.nextInt(); int[] L={0,1,2,3,4,5,6}; while(s.hasNext())L[s.nextInt()]+=10; Arrays.sort(L); System.out.println(L[6]%10); } }