#include <bits/stdc++.h>
using namespace std;
int main() {
  int siz;
  cin >> siz;
  stack<string> stk;
  for (int i = 0; i < siz; i++) {
    string s;
    cin >> s;
    stk.push(s);
  }
  map<string, bool> mpp;
  while (!stk.empty()) {
    if (mpp[stk.top()] == false) {
      cout << stk.top() << "\n";
      mpp[stk.top()] = true;
    }
    stk.pop();
  }
  return 0;
}
