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