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