#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  set<string> st;
  int n;
  cin >> n;
  string s;
  while (n--) {
    cin >> s;
    if (st.find(s) == st.end()) {
      cout << "NO" << endl;
    } else {
      cout << "YES" << endl;
    }
    st.insert(s);
  }
  return 0;
}
