#include <bits/stdc++.h>
using namespace std;
const long long MAXN = 1e9, MINN = -1e9;
const long double pi = 3.14159265358979323846264338327950288;
void fastio() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
}
long long gcd(long long a, long long b) {
  while (b) {
    a %= b;
    swap(a, b);
  }
  return a;
}
void solve() {
  int n;
  cin >> n;
  string s;
  map<string, int> check;
  vector<string> a(n);
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    check[a[i]] = false;
  }
  for (int i = n - 1; i >= 0; i--) {
    if (!check[a[i]]) {
      cout << a[i] << "\n";
      check[a[i]] = true;
    }
  }
}
int main() {
  long long t = 1;
  fastio();
  while (t--) {
    solve();
  }
  return 0;
}
