#include <bits/stdc++.h>
using namespace std;
inline int setBit(int N, int pos) { return N = N | (1 << pos); }
inline int resetBit(int N, int pos) { return N = N & ~(1 << pos); }
inline bool checkBit(int N, int pos) { return (bool)(N & (1 << pos)); }
set<string> sett;
int main() {
  string s;
  int n;
  scanf("%d", &n);
  while (n--) {
    cin >> s;
    if (sett.find(s) == sett.end()) {
      sett.insert(s);
      puts("NO");
    } else
      puts("YES");
  }
  return 0;
}
