#include using namespace std; int main(){ int n; cin >> n; vector types(5); for(int types_i = 0; types_i < n; types_i++) { int type; cin >> type; types[type-1]++; } int maximumType = 0; int maximumTypeIndex = -1; for(size_t i=0;i maximumType ) { maximumType = types[i]; maximumTypeIndex = i; } } cout << maximumTypeIndex+1 << endl; return 0; }