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