#include #include #include #include #include using namespace std; int main() { int t; int type[6] = {0}; cin >> t; int number; while (t--){ cin >> number; type[number]++; } int highN = type[1], highI = 1; for (int i = 2; i< 6; i++){ //cout << type[i] << endl; if(type[i] > highN){ highN = type[i]; highI = i; } } cout << highI;// << " " << highN << endl; return 0; }