#include <bits/stdc++.h>
using namespace std;
const int MAXN = 5e4 + 5;
const long long mod = 1e9 + 7;
const int inf = 0x3f3f3f3f;
template <class T>
inline bool read(T &ret) {
  char c;
  int sgn;
  if (c = getchar(), c == EOF) return 0;
  while (c != '-' && (c < '0' || c > '9')) c = getchar();
  sgn = (c == '-') ? -1 : 1;
  ret = (c == '-') ? 0 : (c - '0');
  while (c = getchar(), c >= '0' && c <= '9') ret = ret * 10 + (c - '0');
  ret *= sgn;
  return 1;
}
set<string> ss;
int main() {
  int n;
  ss.clear();
  cin >> n;
  string str;
  while (n--) {
    cin >> str;
    if (ss.find(str) != ss.end())
      printf("YES\n");
    else {
      printf("NO\n");
      ss.insert(str);
    }
  }
  return 0;
}
