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