#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string str[n];
  for (int i = 0; i < n; i++) cin >> str[i];
  int count = 0;
  set<string> s;
  string temp;
  for (int i = n - 1; i >= 0; i--) {
    temp = str[i];
    s.insert(temp);
    int size = s.size();
    if (size == count + 1) {
      cout << temp << '\n';
      count++;
    }
  }
}
