#include using namespace std; int main() { int N; scanf("%d", &N); map cnts; for (int i = 0; i < N; ++i) { string S; cin >> S; int cnt = S.size() - 2; cnts[cnt]++; } int ma = -1; int cnt = -1; for (auto e: cnts) { if (e.second >= ma) { ma = e.second; cnt = e.first; } } printf("%d\n", cnt); return 0; }