#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]; } int countArr[5], i; for(i < 0 ; i< 5; ++i) countArr[i] = 0; for (i = 0; i < n; ++i) { if (types[i] == 1) { countArr[0]++; continue; } if (types[i] == 2) { countArr[1]++; continue; } if (types[i] == 3) { countArr[2]++; continue; } if (types[i] == 4) { countArr[3]++; continue; } if (types[i] == 5) { countArr[4]++; continue; } } int j; int max = 0, ID_kept = 0; for (j = 0; j < 5; ++j) { if(countArr[j] > max) { max = countArr[j] ; ID_kept = j + 1; } } cout << ID_kept; return 0; }