#include <bits/stdc++.h>
using namespace std;
int a[100005];
int main() {
  map<string, bool> vis;
  int n;
  scanf("%d", &n);
  while (n--) {
    string s;
    cin >> s;
    if (vis[s])
      puts("YES");
    else
      puts("NO");
    vis[s] = 1;
  }
  return 0;
}
