#include using namespace std; int main(){ int n; cin >> n; int a[n]; int k1=0,k2=0,k3=0,k4=0,k5=0; for(int i=0;i>a[i]; if(a[i]==1) k1++; else if(a[i]==2) k2++; else if(a[i]==3) k3++; else if(a[i]==4) k4++; else if(a[i]==5) k5++; } if(k1>=k2&&k1>=k3&&k1>=k4&&k1>=k5) cout<<"1"; else if(k2>=k3&&k2>=k4&&k2>=k5) cout<<"2"; else if(k3>=k4&&k3>=k5) cout<<"3"; else if(k4>=k5) cout<<"4"; else cout<<"5"; return 0; }