#include using namespace std; using ll=long long; #define rep2(i, a, n) for(int i = (a); i < (n); i++) #define rep(i, n) rep2(i,0,n) int main(){ cin.tie(nullptr);ios_base::sync_with_stdio(false); int n;cin>>n; string s; map map; rep(i,n){ cin>>s; map[s.size()]++; } int hoge=0; for(auto itr=map.begin();itr!=map.end();++itr){ if(hogesecond){ hoge=itr->second; } } int ans=-1; for(auto itr=map.begin();itr!=map.end();++itr){ if(hoge==itr->second&&ansfirst){ ans=itr->first; } } cout<