#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
  int n;
  cin >> n;
  vector<string> a(n);
  for (int i = 0; i < n; i++) cin >> a[i];
  reverse(a.begin(), a.end());
  map<string, bool> occ;
  for (int i = 0; i < n; i++) {
    if (occ[a[i]]) continue;
    occ[a[i]] = 1;
    cout << a[i] << '\n';
  }
  return 0;
}
