#include <bits/stdc++.h>
using namespace std;
string e[500009], arr[500009];
map<string, int> m;
int main() {
  int n;
  string a;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a;
    arr[i] = a;
    m[a] = i;
  }
  for (int i = 1; i <= n; i++) {
    int k = m[arr[i]];
    e[k] = arr[i];
  }
  for (int i = n; i >= 1; i--) {
    if (e[i].size()) cout << e[i] << endl;
  }
  return 0;
}
