#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int tests = 1;
  while (tests--) {
    int n;
    cin >> n;
    vector<string> v;
    for (long long i = 0; i < n; i++) {
      string s;
      cin >> s;
      if (i == 0) {
        v.push_back(s);
        cout << "NO" << '\n';
      } else {
        int flag = 0;
        for (long long j = 0; j < v.size(); j++) {
          if (v[j] == s) {
            flag = 1;
            break;
          }
        }
        v.push_back(s);
        if (flag == 1) {
          cout << "YES" << '\n';
        } else {
          cout << "NO" << '\n';
        }
      }
    }
  }
}
