#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  while (cin >> n) {
    map<string, int> time;
    string name;
    list<string> ans;
    for (int i = 0; i < n; i++) {
      cin >> name;
      time[name]++;
      ans.push_front(name);
    }
    list<string>::iterator iter = ans.begin();
    while (iter != ans.end()) {
      if (time[*iter] > 1) {
        cout << *iter << endl;
        time[*iter] = 0;
      } else if (time[*iter] == 1) {
        cout << *iter << endl;
      }
      iter++;
    }
  }
  return 0;
}
