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