#include using namespace std; int main(){ int n,x; int arr[6]={0}; cin >> n; vector types(n); for(int types_i = 0; types_i < n; types_i++){ cin >> x; arr[x]++; } // your code goes here int maxi = 0, index = 0; for(int i = 1; i <= 5; ++i) { if(arr[i] > maxi) {maxi = arr[i]; index = i;} } cout << index; return 0; }