#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<string> vec;
  map<string, bool> mp;
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    string s;
    cin >> s;
    vec.push_back(s);
  }
  vector<string> ans;
  for (int i = vec.size() - 1; i >= 0; i--) {
    if (!mp[vec[i]]) {
      ans.push_back(vec[i]);
    }
    mp[vec[i]] = true;
  }
  for (int i = 0; i < ans.size(); i++) cout << ans[i] << endl;
  return 0;
}
