#include <bits/stdc++.h>
using namespace std;
int main() {
  string d[200005];
  set<string> s;
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> d[i];
  for (int i = n; i > 0; i--) {
    if (s.count(d[i]) == 0) cout << d[i] << endl;
    s.insert(d[i]);
  }
  return 0;
}
