#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, sk = 0;
  string ievad;
  bool check = true;
  cin >> n;
  string vardi[n];
  for (long long i = 0; i < n; i++) {
    cin >> ievad;
    check = true;
    for (long long i = 0; i < n; i++) {
      if (vardi[i] == ievad) {
        check = false;
        break;
      } else if (vardi[i] == "") {
        break;
      }
    }
    if (check) {
      cout << "NO\n";
      vardi[sk] = ievad;
      sk++;
    } else
      cout << "YES\n";
  }
  return 0;
}
