#include <bits/stdc++.h>
using namespace std;
void print() {
  int n;
  cin >> n;
  vector<string> s(n);
  for (int i = 0; i < n; i++) cin >> s[i];
  unordered_map<string, bool> mp;
  for (int i = n - 1; i >= 0; i--) {
    if (mp[s[i]] != true) cout << s[i] << endl;
    mp[s[i]] = true;
  }
}
int main() {
  int t;
  t = 1;
  while (t) {
    --t;
    print();
  }
}
