#include using namespace std; int main(){ int n, type, ix(0), size(0); cin >> n; vector types(6); for(int types_i = 0; types_i < n; types_i++){ cin >> type; ++types[type]; } for(int i = 1; i < 6; i++){ if (types[i] > size) { ix = i; size = types[i]; } } cout << ix << endl; return 0; }