#include <bits/stdc++.h>
using namespace std;
long long z = 1000000009;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n;
  cin >> n;
  vector<string> v;
  map<string, long long> m;
  long long count = 0;
  for (long long i = 0; i < n; i++) {
    string k;
    cin >> k;
    v.push_back(k);
    if (m.count(k) > 0) {
      v[m[k]] = "0";
    }
    m[k] = i;
  }
  long long l = v.size();
  for (long long i = l - 1; i >= 0; i--) {
    if (v[i] != "0") {
      cout << v[i] << "\n";
    }
  }
}
