#include using namespace std; int main(){ int n, max = 0, maxind = 0; cin >> n; vector types(n); vector number(5); for(int types_i = 0; types_i < n; types_i++){ cin >> types[types_i]; number[types[types_i]]++; } for(int i = 1; i <= 5; i++) { if(max < number[i]) { max = number[i]; maxind = i; } } cout << maxind; // your code goes here return 0; }