import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] counts = new int[1000]; for (int i = 0; i < n; i++) { counts[sc.next().length() - 2]++; } int max = 0; int idx = 0; for (int i = 0; i < counts.length; i++) { if (max <= counts[i]) { max = counts[i]; idx = i; } } System.out.println(idx); } }