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