#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]); } // your code goes here int highestTally = 0; int commonBird = 0; int *typeTally = malloc(sizeof(int) * 5); for(int i = 0; i < n; i++) { typeTally[types[i]]++; } for(int j = 1; j < 6; j++) { if (typeTally[j] > highestTally) { highestTally = typeTally[j]; commonBird = j; } } printf("%d", commonBird); return 0; }