#include using namespace std; int main() { int a,b,c=0,d=0,n=0,t=0,m=0,k; cin>>a; vectorarr(a); for(b=0;b>arr[b]; // arr.push_back(k); } c=count(arr.begin(),arr.end(),1); d=count(arr.begin(),arr.end(),2); n=count(arr.begin(),arr.end(),3); t=count(arr.begin(),arr.end(),4); m=count(arr.begin(),arr.end(),5); int hh=max(c,max(d,max(n,max(t,m)))); if(hh==c) cout<<1; else if(hh==d) cout<<2; else if(hh==n) cout<<3; else if(hh==t) cout<<4; else if(hh==m) cout<<5; }