#include #include #include #include #include #include #include int main(){ int n,greatest,num=0; int count[]={0,0,0,0,0}; scanf("%d",&n); int *types = malloc(sizeof(int) * n); for(int types_i = 0; types_i < n; types_i++){ scanf("%d",&types[types_i]); if(types[types_i]==1){ count[0]=count[0]+1; } else if(types[types_i]==2){ count[1]=count[1]+1; } else if(types[types_i]==3){ count[2]=count[2]+1; } else if(types[types_i]==4){ count[3]=count[3]+1; } else if(types[types_i]==5){ count[4]=count[4]+1; } } greatest = count[0]; for (int i = 0; i < 5; i++) { if (count[i] > greatest) { greatest=count[i]; num=i+1; } } printf("%d",num); return 0; }