#include <bits/stdc++.h>
const double pi = acos(-1);
using namespace std;
using namespace std;
const int MAXN = 300010;
int main() {
  int t;
  cin >> t;
  char buf[120];
  string str;
  map<string, bool> ma;
  while (t--) {
    scanf("%s", buf);
    str.assign(buf);
    if (ma.find(str) == ma.end()) {
      printf("NO\n");
      ma[str] = 1;
    } else
      printf("YES\n");
  }
}
