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