#include using namespace std; int main(){ int n, temp_max=0, temp_type=0; int new1[5] = {0, 0, 0, 0, 0}; cin >> n; vector types(n); for(int types_i = 0; types_i < n; types_i++){ cin >> types[types_i]; } // your code goes here for(int i = 0; i < n; i++){ if(types[i] == 1){ new1[0]++; } if(types[i] == 2){ new1[1]++; } if(types[i] == 3){ new1[2]++; } if(types[i] == 4){ new1[3]++; } if(types[i] == 5){ new1[4]++; } } for(int i = 0; i < 5; i++){ if(temp_max < new1[i]){ temp_max = new1[i]; temp_type = i+1; } } cout << temp_type; return 0; }