enum Level { Lv1("1"), Lv2("2"), Lv3("3"), Lv4("4"), Lv5("5"), Lv6("6"); int count; String name; Level(String s) { this.name = s; } public String toString() { return this.name; } static void vote(int i) { switch (i) { case 1: Lv1.count++; break; case 2: Lv2.count++; break; case 3: Lv3.count++; break; case 4: Lv4.count++; break; case 5: Lv5.count++; break; case 6: Lv6.count++; break; } } static Level judgment() { int i = -1; Level max = null; for (Level l : Level.values()) { if (i < l.count) { i = l.count; max = l; } else if (i == l.count) { if (Integer.parseInt(max.name) < Integer.parseInt(l.name)) { max = l; } } } return max; } } public class No_79 { public static void main(String[] args) { java.util.Scanner sc = new java.util.Scanner(System.in); int n = sc.nextInt(); for (int i = 0; i < n; i++) { Level.vote(sc.nextInt()); } System.out.println(Level.judgment()); sc.close(); } }