#include #include #include #include #include #include #include int main(){ int n; int counter[6] = { 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]); ++counter[types[types_i]]; } // your code goes here int max = counter[0], pos = 0; for(int i = 1; i < 6; i++) if(counter[i] > max){ max = counter[i]; pos = i; } printf("%d",pos); return 0; }