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