#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  map<string, int> name;
  cin >> n;
  while (n--) {
    string people;
    cin >> people;
    name[people]++;
    if (name[people] > 1) {
      cout << "YES" << endl;
    } else {
      cout << "NO" << endl;
    }
  }
}
