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