#include using namespace std; int main(){ int n; cin >> n; int temp; int mylist[5]={0}; for(int types_i = 0; types_i < n; types_i++){ cin >> temp; mylist[temp-1]++; } // your code goes here int max=0; for (int i=1;i<5;i++){ if (mylist[i]>mylist[max]) max=i; } cout << max+1; return 0; }