#include <bits/stdc++.h>
using namespace std;
template <typename X>
inline X sqr(const X& a) {
  return a * a;
}
int nxt() {
  int x;
  cin >> x;
  return x;
}
int main() {
  int n = nxt();
  vector<string> a(n);
  for (int i = 0; i < int(n); ++i) {
    cin >> a[i];
  }
  map<string, bool> used;
  reverse(a.begin(), a.end());
  for (int i = 0; i < int(n); ++i) {
    if (!used[a[i]]) {
      cout << a[i] << '\n';
      used[a[i]] = true;
    }
  }
  return 0;
}
