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