#include <bits/stdc++.h>
using namespace std;
const int MAXN = 100;
int N;
string str[MAXN];
int main() {
  cin >> N;
  for (int i = 0; i < (int)N; i++) cin >> str[i];
  for (int i = 0; i < (int)N; i++) {
    bool good = false;
    for (int j = 0; j < (int)i; j++)
      if (str[i].compare(str[j]) == 0) good = true;
    printf("%s\n", good ? "YES" : "NO");
  }
}
