#include <bits/stdc++.h>
using namespace std;
int n;
string s[102];
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> s[i];
    bool ima = false;
    for (int j = 0; j < i; j++)
      if (s[i] == s[j]) ima = true;
    if (ima)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
  return 0;
}
