#include <bits/stdc++.h>
using namespace std;
int n;
string x;
int main() {
  cin >> n;
  set<string> lol;
  for (int i = 0; i < n; ++i) {
    cin >> x;
    if (lol.count(x)) {
      cout << "YES\n";
    } else {
      cout << "NO\n";
      lol.insert(x);
    }
  }
}
