#include <bits/stdc++.h>
using namespace std;
bool used[1005];
int main() {
  map<string, bool> mp;
  string s;
  long long n;
  cin >> n;
  for (long long i = 0; i < n; i++) {
    cin >> s;
    if (mp[s] == false) {
      cout << "NO" << '\n';
      mp[s] = true;
    } else {
      cout << "YES" << '\n';
    }
  }
}
