#include using namespace std; int main(){ int n; cin >> n; vector types(n); for(int types_i = 0; types_i < n; types_i++){ cin >> types[types_i]; } // your code goes here vector v(5,0); for (const int& n : types) { v[n - 1]++; } int max_index = 0; for (int i = 1; i < 5; ++i ) { if (v[i]>v[max_index]) max_index = i; } cout << max_index+1; return 0; }