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