#include <bits/stdc++.h>
int main() {
  int n, k = 0;
  scanf("%d", &n);
  char c[n][1000];
  for (int i = 0; i < n; i++) scanf("%s", c[i]);
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < i; j++) {
      k = 0;
      if (strcmp(c[i], c[j]) == 0) {
        k = 1;
        break;
      }
    }
    if (k == 0)
      printf("NO\n");
    else
      printf("YES\n");
  }
  return 0;
}
