#include <bits/stdc++.h>
using namespace std;
const long long mod = int(1e9) + 7;
const int ma = 1024 * 1024;
stack<string> st;
string s;
map<string, int> mp;
int main() {
  int n;
  iostream::sync_with_stdio(0), cin.tie(0);
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> s;
    st.push(s);
  }
  while (!st.empty()) {
    if (mp[st.top()] != 1) {
      mp[st.top()] = 1;
      cout << st.top() << endl;
    }
    st.pop();
  }
}
