import java.util.*; public class Evaluation{ public static void main(String... args){ Scanner scan = new Scanner(System.in); int N = scan.nextInt(); int[] counts = new int[6]; for(int i = 0; i < N; i++){ counts[scan.nextInt() - 1]++; } int max = 0; for(int i = 0; i < 6; i++){ if(counts[max] <= counts[i]){ max = i; } } System.out.println(max + 1); } }