#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k = 0;
  cin >> n;
  map<string, int> a;
  map<int, string> c;
  for (int i = 1; i <= n; i++) {
    string s;
    cin >> s;
    k++;
    a[s] = k;
  }
  vector<string> b(100);
  map<string, int>::const_iterator it;
  for (it = a.begin(); it != a.end(); it++) c[it->second] = it->first;
  map<int, string>::const_iterator in = c.end(), p = c.begin();
  in--;
  while (in != c.begin()) {
    cout << in->second << endl;
    in--;
  }
  cout << p->second;
  return 0;
}
