#include #define rep(i, ss, ee) for (int i = ss; i < ee; ++i) using namespace std; int main() { 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; } } cout << ans_level << endl; getchar(); }