#include <bits/stdc++.h>
using namespace std;
vector<string> s;
map<string, bool> was;
int main() {
  int n;
  cin >> n;
  s.resize(n);
  for (int i = 0; i < n; i++) {
    cin >> s[i];
  }
  for (int i = n - 1; i >= 0; i--) {
    if (!was[s[i]]) {
      cout << s[i] << "\n";
      was[s[i]] = true;
    }
  }
  return 0;
}
