#include <bits/stdc++.h>
using namespace std;
class ATomRiddlesDiary {
 public:
  void solve(std::istream &cin, std::ostream &cout) {
    int n;
    cin >> n;
    vector<string> s(n);
    for (int i = (0); i < (n); i++) cin >> s[i];
    for (int i = (0); i < (n); i++) {
      bool ok = 0;
      for (int j = 0; j < i; ++j) {
        if (j < i && s[i] == s[j]) {
          cout << "YES" << endl;
          ok = 1;
          break;
        }
      }
      if (!ok) {
        cout << "NO" << endl;
      }
    }
  }
};
int main() {
  ATomRiddlesDiary solver;
  std::istream &in(std::cin);
  std::ostream &out(std::cout);
  solver.solve(in, out);
  return 0;
}
