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