#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i;
  string s1;
  vector<string> arr, ans;
  set<string> s;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> s1;
    arr.push_back(s1);
  }
  ans.push_back(arr.back());
  s.insert(arr.back());
  for (i = arr.size() - 2; i >= 0; i--) {
    if (s.find(arr[i]) == s.end()) {
      ans.push_back(arr[i]);
      s.insert(arr[i]);
    }
  }
  for (i = 0; i < ans.size(); i++) {
    cout << ans[i] << endl;
  }
  return 0;
}
