#include using namespace std; int cnt[1001]; int main(void) { cin.tie(0); ios::sync_with_stdio(false); int n; string s; int res = 0; int Max = 0; cin >> n; for(int i=0;i> s; int m = s.length(); m-=2; cnt[m]+=1; if(Max == cnt[m]) { res = max(res,m); } else if(Max < cnt[m]) { Max = cnt[m]; res = m; } } cout << res << '\n'; return 0; }