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