#include <map>
#include <iostream>
using namespace std;
struct Comparator {
bool operator() (const int& x, const int& y) const {
return x > y;
}
};
int main () {
map<int,int,Comparator> M = { {1,2}, {3,4}, {5,6} };
for (auto& [key, value] : M)
cout << key << ' ' << value << endl;
}