#include <bits/stdc++.h>
using namespace std;
const int SIZE = 1e5;
void solve() {
  int n;
  cin >> n;
  set<string> s;
  for (long long i = 0; i < n; i += 1) {
    string sn;
    cin >> sn;
    if (s.count(sn)) {
      cout << "YES\n";
    } else {
      s.insert(sn);
      cout << "NO\n";
    }
  }
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(NULL);
  int t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
