#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  map<string, int> M;
  while (n--) {
    string s;
    cin >> s;
    puts(M.count(s) ? "YES" : "NO");
    M[s] = 1;
  }
  return 0;
}
