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