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