#include <bits/stdc++.h>
using ll = long long;
using namespace std;
int main() {
  ll t;
  cin >> t;
  string s;
  set<string> ss;
  while (t--) {
    cin >> s;
    if (ss.count(s) == 0) {
      cout << "NO\n";
    }
    if (ss.count(s) != 0) {
      cout << "YES\n";
    }
    ss.insert(s);
  }
}
