#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  vector<string> a;
  for (int i = 0; i < n; i++) {
    string cur;
    cin >> cur;
    a.push_back(cur);
    bool flag = 0;
    for (int j = 0; j < a.size() - 1; j++)
      if (cur == a[j]) {
        flag = 1;
        break;
      }
    if (flag == 0)
      cout << "NO" << '\n';
    else
      cout << "YES" << '\n';
  }
}
