#include using namespace std; int main(){ int n; cin >> n; vector types(n); vector typeCounts{0, 0, 0, 0, 0}; for(int types_i = 0; types_i < n; types_i++) { cin >> types[types_i]; typeCounts[types[types_i]-1]++; } int maxType = 1, maxVal = typeCounts[0]; for(int i=1; i<5; ++i) { if(typeCounts[i]>maxVal) { maxVal = typeCounts[i]; maxType = i+1; } } cout << maxType; return 0; }