#include <bits/stdc++.h>
using namespace std;
int main() {
  const int MAX_N = 200000;
  int n;
  char s[MAX_N][20];
  set<string> chat;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%s", s[i]);
  }
  for (int i = n - 1; i >= 0; i--) {
    if (chat.find(s[i]) == chat.end()) {
      printf("%s\n", s[i]);
    }
    chat.insert(s[i]);
  }
  return 0;
}
