#include using namespace std; #define REP(i, n) for(int i = 0; i < n; i++) int main() { ios::sync_with_stdio(false); cin.tie(0); int N; cin >> N; int cnt[6] = {}; REP(i, N) { int t; cin >> t; cnt[t - 1]++; } int ans, tempMax = 0; REP(i, 6) { if (cnt[i] >= tempMax) { tempMax = cnt[i]; ans = i + 1; } } cout << ans << endl; return 0; }