#include #include #include #include using namespace std; bool compfn(pair const&x,pair const& y){return x.second < y.second;} int max(vector> count) { int max = 0; int ret = 0; for(int i = 0;i= max) { max = count[count.size()-1-i].second; ret = count[count.size()-1-i].first; } } return ret; } int main() { int n; cin >> n; vector types(n); for(int types_i = 0; types_i < n; types_i++){cin >> types[types_i];} vector> count; for(int i = 1;i<=5;i++){count.push_back(make_pair(i,0));} for(int i = 0;i