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