#include <bits/stdc++.h>
using namespace std;
int i;
long n, m;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  map<string, int> mp;
  string s;
  while (n--) {
    cin >> s;
    mp[s]++;
    if (mp[s] > 1) {
      cout << "YES" << endl;
    } else
      cout << "NO" << endl;
  }
  return 0;
}
