//dennismv STL edition #include #include #include using namespace std; #define FOR(i,n) for (int i=0;i &p){cout< getName(int n) { map table; string s,maxname; int max=0; FOR(i,n) cin>>s,max<++table[s]?max=table[s],maxname=s:s; return make_pair(maxname,max); } int main() { int n; while (cin>>n && n!=0) cout<