#include using namespace std; int main(){ int n; cin >> n; vector types(n); vector hash(6,0); //int hash[6] = {0}; for(int types_i = 0; types_i < n; types_i++){ cin >> types[types_i]; } // cout << endl; for(int types_i = 0; types_i < n; types_i++){ hash[types[types_i]-1]++; } int max = hash[0]; int index = 0; int types_i = 0; for(types_i = 1; types_i < 6; types_i++) { if(max < hash[types_i]){ max = hash[types_i]; index = types_i; // cout << types_i; } } cout<< index + 1 << endl; // your code goes here return 0; }