#include <bits/stdc++.h>
using namespace std;
string str[200010];
set<string> ans;
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> str[i];
  }
  for (int i = n - 1; i >= 0; --i) {
    if (!ans.count(str[i])) {
      cout << str[i] << "\n";
      ans.insert(str[i]);
    }
  }
}
