#include using namespace std; int main(){ int n; cin >> n; vector types(5); int maxN = 0; int maxI = -1; for(int types_i = 0; types_i < n; types_i++){ int tn; cin >> tn; types[tn-1]++; } for(int types_i = 0; types_i < 5; types_i++){ if (types[types_i] > maxN) { maxN = types[types_i]; maxI = types_i + 1; } } cout << maxI; // your code goes here return 0; }