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