#include <bits/stdc++.h>
using namespace std;
int main() {
  int n = 0;
  string s;
  vector<string> b;
  set<string> m;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> s;
    b.push_back(s);
  }
  for (int i = n - 1; i >= 0; --i) {
    if (m.find(b[i]) == m.end()) {
      m.insert(b[i]);
      cout << b[i] << endl;
    }
  }
  return 0;
}
