#include <bits/stdc++.h>
using namespace std;
long long int mod = 1000000007;
int main() {
  int n;
  cin >> n;
  map<string, int> m;
  string str;
  int i;
  for (i = 0; i < n; i++) {
    cin >> str;
    if (m.count(str) == 1) {
      cout << "YES" << endl;
    } else {
      cout << "NO" << endl;
    }
    m[str] = 1;
  }
}
