#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, i, j;
  cin >> n;
  string str;
  vector<string> s;
  bool check = true;
  for (long long int i = 0; i < n; i++) {
    cin >> str;
    s.push_back(str);
  }
  for (long long int i = 0; i < n; i++) {
    if (i == 0)
      cout << ((check == false) ? "YES" : "NO") << endl;
    else {
      for (long long int j = 0; j < i; j++) {
        if (s[i] == s[j]) {
          cout << "YES" << endl;
          break;
        }
        if (j == i - 1) cout << "NO" << endl;
      }
    }
  }
  return 0;
}
