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