#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  map<string, bool> p;
  while (n--) {
    string s;
    cin >> s;
    if (p[s] == 1)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
    p[s] = 1;
  }
}
