#include using namespace std; int main(){ int n; cin >> n; vector types(n); vector numbers(6); for(int types_i = 0; types_i < n; types_i++){ int type; cin >> type; numbers[type] += 1; } // your code goes here int max = 0; int maxIndex = 5; int i; for (int i = 5; i >= 1; i--) { if (numbers[i] >= max) { max = numbers[i]; maxIndex = i; } } printf("%d", maxIndex); return 0; }