#include <bits/stdc++.h>
using namespace std;
const int N = 200020;
int main() {
  long long int n;
  cin >> n;
  vector<string> v1;
  map<string, long long int> m1;
  string a;
  for (long long int j = 0; j < n; j++) {
    cin >> a;
    v1.push_back(a);
  }
  for (long long int j = n - 1; j >= 0; j--) {
    if (m1[v1[j]] == 0) {
      cout << v1[j] << endl;
      m1[v1[j]]++;
    }
  }
  return 0;
}
