#include #include #include #include #include #include #include int main(){ long int n, type, big = 0; int ammount[5] = {0}, i, j = 0; scanf("%li",&n); //long int *types = malloc(sizeof(long int) * n); for(long int types_i = 0; types_i < n; types_i++){ scanf("%li",&type); ammount[type-1]++; } for(i=0; i<5; i++) { if(ammount[i] > big) { big = ammount[i]; j = i; } //printf("ammount:%d big:%li\n", ammount[i], big); } printf("%d", j+1); return 0; }