#include using namespace std; int main() { int n, l[7] = {}; cin >> n; for (int i = 0; i < n; ++i) { int tmp; cin >> tmp; l[tmp]++; } int res = 0; for (int i = 1; i < 7; i++) { if (l[res] < l[i]) res = i; } cout << i << endl; return 0; }