#include using namespace std; #define int long long signed main(){ int N; cin>>N; vector A(1010); for(int i=0;i>S; A[S.size()-2]++; } int ans,best = 0; for(int i=0;i<1005;i++){ if(best <= A[i]){ best = A[i]; ans = i; } } cout<