#include <bits/stdc++.h>
using namespace std;
map<string, int> r;
int main() {
  int n;
  cin >> n;
  string s;
  vector<string> v;
  while (n--) {
    cin >> s;
    v.push_back(s);
  }
  reverse(v.begin(), v.end());
  for (auto it : v) {
    if (r[it] == 0) cout << it << endl;
    r[it]++;
  }
}
