#include <bits/stdc++.h>
int main(void) {
  int n;
  std::cin >> n;
  std::vector<std::string> a(n);
  for (int i = 0; i < n; ++i) {
    std::cin >> a[i];
  }
  std::set<std::string> used;
  for (int i = n - 1; i >= 0; --i) {
    if (used.find(a[i]) == used.end()) {
      used.insert(a[i]);
      std::cout << a[i] << std::endl;
    }
  }
  return 0;
}
