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