#include using namespace std; #define _ ios_base::sync_with_stdio(0);cin.tie(0); #define lli long long int map m; set s; int n,x,greatest; int main(){ _ cin>>n; while(n--){ cin>>x; s.insert(x); m[x]+=1; } set::iterator it1,it2; it2=s.end(); int count_=INT_MIN; for(it1=s.begin();it1!=it2;it1++){ if(m[*it1]>count_){ greatest=*it1; count_=m[*it1]; } } cout<