#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  vector<string> vs;
  map<string, bool> visited;
  string name;
  scanf("%d\n", &n);
  while (n--) {
    cin >> name;
    vs.push_back(name);
  }
  int sz = vs.size();
  for (int i = sz - 1; i >= 0; i--) {
    if (!visited[vs[i]]) {
      puts(vs[i].c_str());
      visited[vs[i]] = true;
    }
  }
  return 0;
}
