#include using namespace std; #define REP(i,a,n) for(int i=(a); i<(int)(n); i++) #define rep(i,n) REP(i,0,n) #define FOR(it,c) for(__typeof((c).begin()) it=(c).begin(); it!=(c).end(); ++it) #define ALLOF(c) (c).begin(), (c).end() typedef long long ll; typedef unsigned long long ull; int main(){ int N; cin >> N; map memo; rep(i,N){ string str; cin >> str; memo[str.length()-2]++; } int best_eye = 0; int best_cnt = 0; for(auto& x : memo){ if(best_cnt == x.second){ if(best_eye < x.first){ best_eye = x.first; } } else if(best_cnt < x.second){ best_cnt = x.second; best_eye = x.first; } } cout << best_eye << endl; return 0; }