#include <set>
#include <cstdio>

using namespace std;

int main() {
  auto f = []( int i, int j ) { return i > j; };
  set <int, decltype(f)> s(f);

  for (int i = 1; i <= 10; i++)
    s.insert(i);
  for (auto it : s)
    printf("%d ", it);
}