#include using namespace std; int main(){ int n; cin >> n; //vector types(n); vector type_number(5, 0); int current_type; for(int types_i = 0; types_i < n; types_i++){ //cin >> types[types_i]; cin >> current_type; ++type_number[current_type-1]; } // your code goes here int most_abundant_type = 0; int max_occurences = 0; for(int i=0; i<5; i++){ // cout << "Type " << i << " birds:" << type_number[i] << endl; if(type_number[i]>max_occurences) { max_occurences = type_number[i]; most_abundant_type = i+1; } } cout << most_abundant_type; return 0; }