#include <bits/stdc++.h>
using namespace std;
const int N = 109;
map<string, int> m;
int main() {
  char a[N];
  int n;
  while (~scanf("%d", &n))
    for (int i = 0; i < n; i++) {
      scanf("%s", a);
      if (m[a] == 0)
        printf("NO\n");
      else
        printf("YES\n");
      m[a]++;
    }
  return 0;
}
