#include using namespace std; int main(){ int n; cin >> n; vector types(n); int a[5] = {0}; for(int types_i = 0; types_i < n; types_i++){ cin >> types[types_i]; a[types[types_i] - 1]++; } int max = a[0], index = 1; for (int i = 0; i < 5; i++){ if (max < a[i]){ max = a[i]; index = i + 1; } } printf("%d", index); // your code goes here return 0; }