#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 count[]={0,0,0,0,0}; for(int i=0;i<5;i++){ for(int k=0;kmax){ max=count[u]; minOfMax=u; } } //check with another equal count indexes st minOfMax to //smallest index for(int a=0;a<5;a++){ if(a!=minOfMax){ if(count[a]==count[minOfMax]){ if(minOfMax>a){ minOfMax=a; } } } } //display index+1 as type cout<