#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:64000000")
using namespace std;
const int N6 = 1e6 + 6;
const int N9 = 1e9 + 7;
const long long INF = (long long)1e18 + 100;
const long long mod = 1743;
const long long P = 31;
const long long N = 15111;
int n, dem = 0;
string s[250000];
map<string, bool> cnt;
int main() {
  cin >> n;
  for (int i = 1; i <= n; ++i) {
    cin >> s[i];
  }
  for (int i = n; i >= 1; --i) {
    if (!cnt.count(s[i])) {
      cout << s[i] << '\n';
      cnt[s[i]];
    }
  }
  return 0;
}
