#include <bits/stdc++.h>
using namespace std;
string a[200001];
map<string, bool> p;
int main() {
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    string s;
    cin >> s;
    a[i] = s;
  }
  for (int i = n; i >= 1; i--) {
    if (!p[a[i]]) {
      cout << a[i] << endl;
      p[a[i]] = 1;
    }
  }
  return 0;
}
