#include<bits/stdc++.h>
using namespace std;
int main(){
map<string,int>mp;
int n;
while(cin>>n){
mp=map<string,int>();
mp["green"]=mp["red"]=mp["blue"]=mp["pink"]=mp["orange"]=mp["black"]=0;
while(n--){
string str;
cin>>str;
mp[str]++;
}
int maxx=0;
string ans;
for(map<string,int>::iterator it=mp.begin();it!=mp.end();it++){
if(it->second>maxx){
maxx=it->second;
ans=it->first;
}
}
cout<<ans<<endl;
}
return 0;
}