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