#include <bits/stdc++.h>
using namespace std;
void c_p_c() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
int32_t main() {
  c_p_c();
  long long n;
  string s[222222];
  map<string, bool> check;
  cin >> n;
  for (long long i = 1; i <= n; i++) {
    cin >> ws;
    getline(cin, s[i]);
  }
  for (long long i = n; i >= 1; i--) {
    if (!check[s[i]]) {
      check[s[i]] = 1;
      cout << s[i] << "\n";
    }
  }
  return 0;
}
