#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  string s[n + 1000];
  for (int i = 0; i < n; ++i) cin >> s[i];
  for (int i = 0; i < n; ++i) {
    int f = -1;
    for (int j = i - 1; j >= 0; --j) {
      if (s[i] == s[j] && i != j) {
        f = 1;
        break;
      }
    }
    if (f > 0)
      cout << "YES\n";
    else
      cout << "NO\n";
  }
}
