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