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