#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, j, c[110];
  string b;
  map<string, int> m;
  memset(c, 0, sizeof(c));
  cin >> n;
  for (i = 1; i <= n; i++) {
    cin >> b;
    for (j = 1; j < i; j++) {
      map<string, int>::iterator itr = m.find(b);
      if (itr == m.end()) {
        continue;
      } else {
        c[i]++;
        break;
      }
    }
    m.insert(make_pair(b, i));
  }
  for (i = 1; i <= n; i++) {
    if (c[i] == 1) {
      cout << "YES" << endl;
    } else {
      cout << "NO" << endl;
    }
  }
  return 0;
}
