#include <bits/stdc++.h>
using namespace std;
std::map<string, bool> M;
string str[200001];
int main() {
  std::ios::sync_with_stdio(false);
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> str[i];
  }
  for (int i = n; i >= 0; i--) {
    if (!M[str[i]]) {
      cout << str[i] << endl;
      M[str[i]] = true;
    }
  }
  return 0;
}
