#include #include #include #include #include using namespace std; int main() { int one=0,two=0,three=0,four=0,five=0,type; int n; cin>>n; while(n!=0){ cin>>type; if(type==1) ++one; if(type==2) ++two; if(type==3) ++three; if(type==4) ++four; if(type==5) ++five; --n; } vector tp; tp.push_back(one); tp.push_back(two); tp.push_back(three); tp.push_back(four); tp.push_back(five); int iter=*max_element(tp.begin(),tp.end()); for(int i=0;i!=5;++i){ if(tp[i]==iter){ cout<<(i+1)<