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