#include using namespace std; // yukicoder no.706 int main() { vector freq(1000, 0); int N; cin >> N; while (N--){ string S; cin >> S; ++freq[S.size() - 2]; } int ans = 0; int maxFreq = 0; for (int i = 0; i < freq.size(); ++i){ if (maxFreq <= freq[i]){ ans = i; maxFreq = freq[i]; } } cout << ans << endl; return 0; }