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