#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 int types_count[5] = {0, 0, 0, 0, 0}; int max_type_index = 0; for( int i = 0; i < n ; ++i) { types_count[ types[i]-1 ]++; } for( int i = 1; i < 5; ++i) { if( types_count[i] > types_count[max_type_index] ) max_type_index = i; } cout << max_type_index + 1; return 0; }