#include <bits/stdc++.h>
using namespace std;
map<string, int> ma;
const int MAX = (2e5 + 1);
string s[MAX];
int main() {
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> s[i];
  for (int i = n; i >= 1; i--) {
    string t;
    t = s[i];
    if (ma[t]) continue;
    ma[t] = 1;
    cout << s[i] << endl;
  }
}
