from collections import defaultdict def main(): n = int(input()) d = defaultdict(int) for _ in range(n): s = len(input()) - 2 d[s] += 1 print(max(x for x in d if d[x] == max(d.values()))) if __name__ == "__main__": main()