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