#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define BET(a,b,c) ((a)<=(b)&&(b)<(c)) #define FOR(i,n) for(int i=0,i##_end=(int(n));i VI; typedef vector VVI; int main() { int N; cin>>N; VI H(10); FOR(i,N) { int x; cin>>x; H[x]++; } int maxFreq = *max_element(ALL(H)); int ans = 0 ; FOR(i,SZ(H)) if(maxFreq == H[i]) { ans = i ; } cout<