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