#include <bits/stdc++.h>
using namespace std;
set<string> a;
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    string s;
    cin >> s;
    if (a.count(s))
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
    a.insert(s);
  }
}
