#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  set<string> s;
  while (n--) {
    string t;
    cin >> t;
    puts(s.count(t) != 0 ? "YES" : "NO");
    s.insert(t);
  }
}
