#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  vector<string> v(n + 5);
  map<string, int> m;
  int t = 0;
  while (n--) {
    cin >> v[t];
    m[v[t]]++;
    t++;
  }
  for (int i = t - 1; i >= 0; i--) {
    if (m[v[i]] != 0) {
      cout << v[i] << '\n';
      m[v[i]] = 0;
    }
  }
  return 0;
}
