#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  cin.get();
  string s;
  deque<pair<string, bool>> storage;
  while (n--) {
    getline(cin, s);
    storage.push_back(pair<string, bool>(s, true));
  }
  deque<pair<string, bool>>::iterator it1, it2;
  bool flag;
  for (it1 = storage.begin(); it1 < storage.end(); it1++) {
    if (it1->second == true) {
      cout << "NO" << endl;
    } else {
      cout << "YES" << endl;
    }
    for (it2 = it1 + 1; it2 < storage.end(); it2++) {
      if (it1->first == it2->first) {
        it2->second = false;
      }
    }
  }
}
