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