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