#include <bits/stdc++.h>
using namespace std;
set<string> setOne;
int main() {
  int n;
  string str;
  cin >> n;
  string* strList = new string[n];
  for (int i = 0; i < n; i++) {
    cin >> strList[i];
  }
  for (int i = n - 1; i >= 0; i--) {
    if (setOne.count(strList[i]) != 0)
      continue;
    else {
      cout << strList[i] << endl;
      setOne.insert(strList[i]);
    }
  }
}
