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