#include <bits/stdc++.h>
using namespace std;
const string FILENAME = "";
const bool FILE_IO = 0;
void init() {
  if (!FILENAME.empty()) {
    freopen((FILENAME + ".in").c_str(), "r", stdin);
    freopen((FILENAME + ".out").c_str(), "w", stdout);
  }
}
int main() {
  init();
  int n, flag = 0;
  cin >> n;
  string str[100];
  for (int i = 0; i < n; i++) cin >> str[i];
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < i; j++) {
      if (str[j] == str[i]) {
        cout << "YES" << endl;
        flag = 1;
        break;
      }
    }
    if (!flag)
      cout << "NO" << endl;
    else
      flag = 0;
  }
  return 0;
}
