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