#include <bits/stdc++.h>
using namespace std;
const int maxn = 2e5 + 50;
const int INF = 0x3f3f3f3f;
string s[maxn], ans[maxn];
map<string, int> mp;
int main() {
  int n;
  cin >> n;
  int m = n + 1;
  for (int i = 0; i < maxn; i++) ans[i] = "";
  for (int i = 1; i <= n; i++) {
    cin >> s[i];
    ans[m--] = s[i];
  }
  for (int i = m; i <= n + 1; i++) {
    mp[ans[i]]++;
    if (ans[i] != "" && mp[ans[i]] == 1) cout << ans[i] << endl;
  }
}
