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