#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  long long n;
  cin >> n;
  ;
  set<string> x;
  for (long long i = 0; i < n; i++) {
    string s;
    cin >> s;
    if (x.find(s) != x.end()) {
      cout << "YES" << endl;
    } else {
      x.insert(s);
      cout << "NO" << endl;
    }
  }
  return 0;
}
