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