#include using namespace std; int main(){ int n; cin >> n; vector types(5,0); for(int types_i = 0; types_i < n; types_i++){ int type; cin >> type; types[type]++; } int max = 0; int maxID = 1; for(int i=1; i<=5; i++) { if (types[i]>max) { max = types[i]; maxID = i; } } cout << maxID << endl; return 0; }