#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  string s;
  scanf("%d", &n);
  bool arr[n];
  vector<string> v(n);
  for (int i = 0; i < n; i++) {
    cin >> v[i];
    arr[i] = false;
  }
  for (int i = 0; i < n; i++) {
    for (int j = i + 1; j < n; j++) {
      if (v[i] == v[j]) {
        arr[j] = true;
      }
    }
  }
  for (int i = 0; i < n; i++) {
    if (arr[i] == false) {
      cout << "NO"
           << "\n";
    } else {
      cout << "YES"
           << "\n";
    }
  }
  return 0;
}
