#include #define MAX_N 100001 #define INF_INT 2147483647 #define INF_LL 9223372036854775807 #define REP(i,n) for(int i=0;i<(int)(n);i++) using namespace std; typedef long long int ll; typedef pair P; int main() { int N,me[1001] = {0},ma=-1,ind; string S; cin >> N; REP(i,N){ cin >> S; me[S.size()-2]++; } REP(i,1001)if(ma <= me[i]){ ma = me[i]; ind = i; } cout << ind << endl; return 0; }