#include <bits/stdc++.h>
using namespace std;
map<string, int> mp;
pair<map<string, int>::iterator, bool> ch;
int main() {
  int n;
  cin >> n;
  string a[n];
  for (int k = 0; k < n; k++) {
    string s;
    cin >> s;
    a[k] = s;
  }
  for (int k = n - 1; k >= 0; k--) {
    ch = mp.insert({a[k], 300});
    if (ch.second == true) cout << a[k] << endl;
  }
  return 0;
}
