#include #define rep(i,n) for(int i=0; i<(n); i++) using namespace std; typedef long long ll; int main(){ int n; cin>>n; vector v(n); rep(i,n) cin>>v[i]; int cnt1, cnt2, cnt3, cnt4, cnt5, cnt6; cnt1=cnt2=cnt3=cnt4=cnt5=cnt6=0; for(auto x:v){ if(x==1) cnt1++; else if(x==2) cnt2++; else if(x==3) cnt3++; else if(x==4) cnt4++; else if(x==5) cnt5++; else if(x==6) cnt6++; } vector> p(6); p.at(0)=make_pair(cnt1, 1); p.at(1)=make_pair(cnt2, 2); p.at(2)=make_pair(cnt3, 3); p.at(3)=make_pair(cnt4, 4); p.at(4)=make_pair(cnt5, 5); p.at(5)=make_pair(cnt6, 6); sort(p.begin(), p.end()); int c,d; tie(c,d)=p.at(5); cout << d << endl; }