#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%d", &n);
  string line;
  set<string> namesSet;
  for (int i = 0; i < n; i++) {
    cin >> line;
    if (namesSet.find(line) != namesSet.end())
      cout << "YES" << endl;
    else {
      namesSet.insert(line);
      cout << "NO" << endl;
    }
  }
  return 0;
}
