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