#include #include #include #include #include #include #include int ARR[200001]; 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]); ARR[types[types_i]]++; } int p,max=0,i; for(i=1;i<=5;i++) { if(ARR[i]>max) { max=ARR[i]; p=i; } } printf("%d\n",p); // your code goes here return 0; }