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