import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int N = scan.nextInt(); int []d = new int[1001 - 2]; Arrays.fill(d, 0); for(int i = 0; i < N; i++) { String s = scan.next(); d[s.length() - 2] ++; } scan.close(); int max = 0; int index = 0; for(int i = 0; i < d.length; i++) { if(max <= d[i]) { index = i; max = d[i]; } } System.out.println(index); } }