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