#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  set<string> f;
  int n;
  cin >> n;
  while (n--) {
    cin >> s;
    if (f.count(s))
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
    f.insert(s);
  }
  return 0;
}
