#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  cin >> n;
  string s;
  map<string, int> m;
  for (__typeof((n)) i = (0); i < (n); i++) {
    cin >> s;
    if (m[s])
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
    m[s]++;
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
