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