#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<string> v(n);
  for (auto &u : v) {
    cin >> u;
  }
  for (int i = 0; i < n; i++) {
    int cnt = 0;
    for (int j = 0; j <= i; j++) {
      if (v[i] == v[j]) {
        cnt++;
      }
    }
    if (cnt > 1)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
}
