#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<string> v;
  for (int i = 0; i < n; i++) {
    bool found = false;
    string s;
    cin >> s;
    for (int j = 0; j < i; j++) {
      if (v[j] == s) {
        cout << "YES" << endl;
        found = true;
        break;
      }
    }
    if (!found) cout << "NO" << endl;
    v.push_back(s);
  }
}
