#include using namespace std; int main(){ int n; cin >> n; vector types(n); int count[6] = { 0 }; for(int types_i = 0; types_i < n; types_i++){ cin >> types[types_i]; count[types[types_i]]++; } // your code goes here int max_count = 0; int max_type = 0; for( int i = 1; i <= 5; i++ ) { if( count[i] > max_count ) { max_count = count[i]; max_type = i; } } cout << max_type; return 0; }