#include <bits/stdc++.h>
using namespace std;
map<string, int> mp;
int main() {
  long long n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    string s;
    cin >> s;
    mp[s] = i;
  }
  map<string, int>::iterator it;
  vector<pair<long long, string> > v;
  for (it = mp.begin(); it != mp.end(); it++) {
    v.push_back(make_pair(it->second, it->first));
  }
  sort(v.begin(), v.end());
  for (int i = v.size() - 1; i >= 0; i--) {
    cout << v[i].second << "\n";
  }
}
