#include <bits/stdc++.h>
using namespace std;
const int MAX_N = 2 * 100000 + 1;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  string a[MAX_N];
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  set<string> st;
  for (int i = n - 1; i >= 0; i--) {
    if (st.find(a[i]) == st.end()) {
      cout << a[i] << "\n";
      st.insert(a[i]);
    }
  }
  return 0;
}
