#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 countType[5] = {0,0,0,0,0}; int highestType = 1; for(int i = 0 ; i< n ; i++) countType[types[i]-1]++; for(int i = 0 ; i<4 ; i++) { if(countType[highestType-1] < countType[i+1]) { highestType = i+2; } } printf("%d", highestType); return 0; }