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