Map 水题
#include<iostream>
#include<map>
#include<utility>
using namespace std;
int main()
{
int total;
while(cin>>total&&total!=0)
{
map<string,int>Map;
for(int i=0;i<total;i++)
{
string s;cin>>s;
Map[s]++;
}
map<int,string>map1;
map<string,int>::iterator it=Map.begin();
for(;it!=Map.end();it++){
map1.insert(pair<int,string>(it->second,it->first));
}
map<int,string>::iterator is = map1.end();
is--;
cout<<is->second<<endl;
}
return 0;
}