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