#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 typeCount[5] = {0}; for(int i=0;i> currtype; ++typeCount[currtype-1]; }*/ int max = typeCount[0]; int maxIndex = 0; for(int i=1;i<5;++i) { if(typeCount[i] > max) { max = typeCount[i]; maxIndex = i; } } cout << maxIndex+1; return 0; }