#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, i;
  cin >> n;
  map<long long int, string> m;
  string b;
  for (i = 0; i <= n - 1; i++) {
    cin >> b;
    m.insert(pair<long long int, string>(i, b));
  }
  map<long long int, string>::reverse_iterator itr;
  set<string> s;
  for (itr = m.rbegin(); itr != m.rend(); itr++) {
    if (s.count(itr->second) == 0) {
      cout << itr->second << "\n";
      s.insert(itr->second);
    } else {
      continue;
    }
  }
}
