#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  unordered_map<string, int> m;
  for (int i = 0; i < n; i++) {
    string s;
    cin >> s;
    if (!m.count(s)) {
      m.insert({s, 0});
      cout << "NO" << endl;
    } else {
      cout << "YES" << endl;
    }
  }
}
