#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string names[n];
  for (int i = 0; i < n; ++i) {
    cin >> names[i];
  }
  for (int i = 0; i < n; ++i) {
    bool been = false;
    for (int j = 0; j < i; ++j) {
      if (names[j] == names[i]) been = true;
    }
    cout << (been ? "YES" : "NO") << endl;
  }
  return 0;
}
