#include using namespace std; bool mycompare(pair A,pair B) { if(A.first>B.first) return true; else if(A.firstB.second) return false; else return true; } int main(){ int n; cin >> n; pair count[5]; for(int i=0;i<5;i++) { count[i].first=0; count[i].second=i+1; } for(int i=0;i>temp; count[temp-1].first++; } sort(count,count+5,mycompare); cout<