#include #define rep(i, ss, ee) for (int i = ss; i < ee; ++i) using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(false); int N, x; int ans_level = 0, ans_max = 0; cin >> N; vector v(7); rep(i, 0, N) { cin >> x; v[x]++; } rep(i, 1, 7) { if (ans_max <= v[i]) { ans_level = i; ans_max = v[i]; } } cout << ans_level << endl; getchar(); }