import scipy.stats N = int(input()) X = [2 - len(input()) for i in range(N)] mode, _ = scipy.stats.mode(X) print(-mode[0])