#include <bits/stdc++.h>
int main() {
  int n;
  std::cin >> n;
  std::map<std::string, int> mp1;
  std::map<int, std::string> mp2;
  for (int i = 0; i < n; i++) {
    std::string s;
    std::cin >> s;
    mp1[s] = i;
  }
  for (std::map<std::string, int>::iterator it = mp1.begin(); it != mp1.end();
       it++) {
    mp2[it->second] = it->first;
  }
  for (std::map<int, std::string>::reverse_iterator it = mp2.rbegin();
       it != mp2.rend(); it++) {
    std::cout << it->second << std::endl;
  }
}
