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