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