#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string a;
  vector<string> list;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (std::find(list.begin(), list.end(), a) != list.end()) {
      cout << "YES" << endl;
    } else {
      cout << "NO" << endl;
    }
    list.push_back(a);
  }
  return 0;
}
