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