#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  string s[n];
  for (int i = 0; i < n; i++) cin >> s[i];
  set<string> str;
  cout << endl;
  for (int i = n - 1; i >= 0; i--) {
    if (!str.count(s[i])) {
      str.insert(s[i]);
      cout << s[i] << endl;
    }
  }
}
