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