#include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> using namespace std; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int hash[10]={0}; int n; cin>>n; for(int i=0;i<n;i++){ int a; cin>>a; hash[a]++; } int mx=0,ans=0; for(int i=1;i<=5;i++){ if(hash[i]>mx){ mx=hash[i]; ans=i; } } cout<<ans<<endl; return 0; }