#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  cin >> n;
  char c[n][101];
  char s[n][4];
  for (int i = 0; i < n; i++) cin >> c[i];
  int j;
  int k = 0;
  for (int i = n - 1; i >= 0; i--) {
    for (j = 0; j < i; j++) {
      if (strcmp(c[i], c[j]) == 0) {
        s[k][0] = 'Y';
        s[k][1] = 'E';
        s[k][2] = 'S';
        s[k][3] = '\0';
        k++;
        break;
      }
    }
    if (j == i) {
      s[k][0] = 'N';
      s[k][1] = 'O';
      s[k][2] = '\0';
      k++;
    }
  }
  for (int i = n - 1; i >= 0; i--) cout << s[i] << endl;
  return 0;
}
