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