#include #include #include #include #include #include #include int main(){ int n; int arr[6] = { 0x0 }; scanf("%d",&n); int type; for(int types_i = 0; types_i < n; types_i++){ scanf("%d",&type); arr[type]++; } type = 1; for(n=2; n<6; n++) { if (arr[n] > arr[type]) type = n; } printf("%d", type); return 0; }