#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<string> v;
  while (n--) {
    string s;
    cin >> s;
    v.push_back(s);
  }
  map<string, int> mp;
  for (int i = v.size() - 1; i >= 0; i--) {
    if (mp[v[i]] == 0) {
      cout << v[i] << "\n";
      mp[v[i]] = 1;
    } else
      continue;
  }
}
