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