#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  int n;
  cin >> n;
  map<string, bool> founded;
  while (n--) {
    string s;
    cin >> s;
    if (founded[s] == 1)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
    founded[s] = 1;
  }
}
