#include #include #include #include #include #include #include int main(){ int n; scanf("%d",&n); int tlist[6]={0,0,0,0,0,0}; int *types = malloc(sizeof(int) * n); for(int types_i = 0; types_i < n; types_i++){ scanf("%d",&types[types_i]); tlist[types[types_i]]++; } int max=tlist[1],k=1; for(int i=2;i<=5;i++) if(tlist[i]>max) { max=tlist[i];k=i;} // your code goes here printf("%d",k); return 0; }