#include using namespace std; int main(){ int n, a; cin >> n; vector tel(5,0); for(int types_i = 0; types_i < n; types_i++){ cin >> a; a--; tel[a]++; } int m = tel[0],mt=0; for(int i = 1 ; i < 5 ; i++){ mt = (tel[i] > m) ? i : mt; m = max(m,tel[i]); } cout << mt + 1<< endl; // your code goes here return 0; }