#include #include #include #include #include #include #include int main(){ int n; scanf("%d",&n); int *types = malloc(sizeof(int) * n); int cnt[6]; for (int m=1;m<=5;m++){ cnt[m]=0; } for(int types_i = 0; types_i < n; types_i++){ scanf("%d",&types[types_i]); cnt[types[types_i]]++; // printf("%d ",cnt[types[types_i]]); } int max=0; int t; for(int j=1;j<=5;j++){ if(cnt[j]>max){ // printf("max is for %d ",j); max=cnt[j]; t=j; } } printf("%d ",t); // your code goes here return 0; }