#include #include using namespace std; int main() { int n; cin >> n; vector r(7, 0); for (int i = 0; i < n; ++i) { int a; cin >> a; r[a]++; } int ans=1; for (int i = 2; i < 7; ++i) { if (r[ans] < r[i]) ans = i; } cout << ans<< endl; fflush (stdin); getchar (); fflush (stdin); getchar (); return 0; }