#include <bits/stdc++.h>
using namespace std;
using namespace std::chrono;
int main() {
  map<string, int> make_pair;
  int n;
  cin >> n;
  while (n--) {
    string s;
    cin >> s;
    make_pair[s]++;
    if (make_pair[s] > 1)
      cout << "YES\n";
    else
      cout << "NO\n";
  }
  return 0;
}
