#include <bits/stdc++.h>
using namespace std;
string a[300000];
int n;
set<string> s;
int main() {
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
  }
  for (int i = n - 1; i >= 0; --i) {
    if (s.find(a[i]) == s.end()) {
      cout << a[i] << endl;
      s.insert(a[i]);
    }
  }
  return 0;
}
