#include <bits/stdc++.h>
using namespace std;
const int inf = 10e8;
int maxN = 200001;
struct item {
  int prev, next;
  string val;
};
int n;
map<string, int> m;
int ans = 0;
int main() {
  cin >> n;
  vector<string> str;
  int ind = 1, beg = 0;
  vector<string> g(n);
  for (int i = 0; i < n; i++) {
    cin >> g[i];
  }
  for (int i = n - 1; i >= 0; i--) {
    if (m[g[i]] == 0) {
      str.push_back(g[i]);
      m[g[i]] = 1;
    }
  }
  for (int i = 0; i < str.size(); i++) {
    cout << str[i] << "\n";
  }
  return 0;
}
