#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  map<string, string> database;
  string s;
  for (int i = 0; i != n; i++) {
    cin >> s;
    ;
    if (database.count(s) == 0) {
      cout << "NO" << endl;
      database[s] = 1;
    } else {
      cout << "YES" << endl;
      database[s] += 1;
    }
  }
  return 0;
}
