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