#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, j;
  cin >> n;
  string str[102];
  for (i = 0; i < n; i++) {
    cin >> str[i];
    for (j = 0; j < i; j++) {
      if (str[i] == str[j]) break;
    }
    if (i == j)
      cout << "NO" << endl;
    else
      cout << "YES" << endl;
  }
}
