#include <bits/stdc++.h>
using namespace std;
string stk[200001];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  map<string, int> m;
  string s, r = "";
  int n;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> s;
    stk[i] = s;
    m.insert({stk[i], 1});
  }
  for (int i = n - 1; i >= 0; --i) {
    if (m[stk[i]] > 0) {
      cout << stk[i] << "\n";
      m[stk[i]] = 0;
      ;
    }
  }
}
