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