1 | #include <bits/stdc++.h> |
2 | |
3 | using namespace std; |
4 | |
5 | int main() { |
6 | int n; |
7 | cin >> n; |
8 | set<int, greater<int>> b; |
9 | for (int i = 0; i < n; ++i) { |
10 | int x; |
11 | cin >> x; |
12 | b.insert(x); |
13 | } |
14 | for (int x: b) { |
15 | cout << x << ' '; |
16 | } |
17 | return 0; |
18 | } |