#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, book[200001] = {0}, a;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a;
    book[a]++;
  }
  for (int i = 200001; i >= 0; i--) {
    if (book[i] != 0) cout << i << endl;
  }
  return 0;
}
