#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  char a[n][103];
  int i, j, k;
  for (i = 0; i < n; i++) cin >> a[i];
  cout << "NO" << endl;
  for (i = 0; i < n; i++) {
    for (j = 0; j < i; j++) {
      if (strcmp(a[i], a[j]) == 0) {
        cout << "YES" << endl;
        break;
      } else if (j == i - 1)
        cout << "NO" << endl;
    }
  }
}
