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