#include <bits/stdc++.h>
using namespace std;
bool ara[200200];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  ;
  int n, m = 0;
  cin >> n;
  set<string> ss;
  while (n--) {
    string s;
    cin >> s;
    ss.insert(s);
    if (ss.size() == m + 1) {
      cout << "NO" << endl;
      m++;
    } else
      cout << "YES" << endl;
  }
  return 0;
}
