#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, j, flag = 0;
  cin >> n;
  string s[1000];
  for (i = 0; i < n; i++) cin >> s[i];
  for (i = 0; i < n; i++) {
    flag = 0;
    for (j = 0; j < n; j++) {
      if (s[i] == s[j] && i > j && i != j) {
        flag = 1;
        break;
      }
    }
    if (flag == 0)
      cout << "NO" << endl;
    else
      cout << "YES" << endl;
  }
  return 0;
}
