package net.ipipip0129.yukicoder.no706; import java.util.Scanner; class Main { public static void main(String[] args) { int[] cnt_list = new int[1001]; Scanner scan = new Scanner(System.in); int num = Integer.parseInt(scan.nextLine()); for (int i = 0; i < num; i++) { cnt_list[scan.nextLine().length() - 2]++; } int max_index = 0; int max_num = 0; for (int i = 0; i < 1001; i++) { if (max_num <= cnt_list[i]) { max_index = i; max_num = cnt_list[i]; } } System.out.println(max_index); } }