#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<string> v;
  unordered_set<string> strings;
  int n;
  cin >> n;
  v.resize(n);
  for (int i = 0; i < n; ++i) cin >> v[i];
  for (auto it = v.crbegin(); it != v.crend(); ++it) {
    if (strings.find(*it) == strings.end()) {
      cout << *it << '\n';
      strings.insert(*it);
    }
  }
}
