#include <bits/stdc++.h>
using namespace std;
int main() {
  srand(time(NULL));
  ios_base::sync_with_stdio(false);
  int n;
  map<string, int> s;
  cin >> n;
  for (int i = 0; i < n; i++) {
    string t;
    cin >> t;
    if (s.find(t) == s.end())
      s.insert(make_pair(t, i));
    else
      s[t] = i;
  }
  string a[n];
  fill(a, a + n, "");
  while (s.size() > 0) {
    string t = (*(s.begin())).first;
    a[s[t]] = t;
    s.erase(t);
  }
  for (int i = n - 1; i >= 0; i--) {
    if (a[i] != "") cout << a[i] << "\n";
  }
  return 0;
}
