#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int num;
  cin >> num;
  vector<string> name(num);
  set<string> unique_name;
  for (int i = 0; i < num; i += 1) {
    cin >> name[i];
  }
  reverse(name.begin(), name.end());
  for (string j : name) {
    if (unique_name.count(j) > 0) {
      continue;
    }
    cout << j << "\n";
    unique_name.insert(j);
  }
  return 0;
}
