#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 birds[5]; int answer = 0; int tmp; for(int i = 0; i < n; i++) { tmp = types[i]; ++birds[tmp - 1]; } for(int j = 0; j < 5; j++) { if(birds[j] > answer) { answer = j; } } cout << answer; return 0; }