#include using namespace std; int main() { int n,m; cin>>n; mapmp; int M=0; while(n--) { cin>>m; mp[m]++; M=max(mp[m],M); } for(map::iterator it=mp.begin();it!=mp.end();it++){ if(it->second==M){ cout<first<