#include #include #include #include #include #include #include int main(){ int n,i,c[7],h,hid; scanf("%d",&n); int *types = malloc(sizeof(int) * n); for(int types_i = 0; types_i < n; types_i++){ scanf("%d",&types[types_i]); } for (i=1; i<6; i++) c[i]=0; int a; for (i=0; i0; i--) if (c[i]>=h) { h=c[i]; hid=i; } printf("%d",hid); // your code goes here return 0; }