#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  vector<string> v;
  v.reserve(n);
  for (int i = 0; i < n; i++) {
    char c[10];
    cin >> c;
    v.emplace_back(c);
  }
  unordered_set<string> us;
  for (int i = n - 1; i >= 0; i--) {
    if (us.count(v[i]) == 0) {
      cout << v[i] << "\n";
      us.insert(v[i]);
    }
  }
  return 0;
}
