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