#include <bits/stdc++.h>
using namespace std;
map<string, bool> mapa;
stack<string> chat;
string temp;
int a, b, c, i, j, k, n;
int main() {
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    cin >> temp;
    chat.push(temp);
  }
  while (!chat.empty()) {
    temp = chat.top();
    chat.pop();
    if (!mapa.count(temp)) {
      cout << temp << endl;
      mapa[temp] = true;
    }
  }
}
