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