#include <bits/stdc++.h>
using namespace std;
const long long INF = 8e18;
const long long mod = 1e9 + 7;
void solve() {
  long long n;
  cin >> n;
  vector<string> a(n);
  for (long long i = 0; i < n; ++i) cin >> a[i];
  for (long long i = 0; i < n; i++) {
    bool yes = false;
    for (long long j = 0; j < i; j++) {
      if (a[i] == a[j]) {
        cout << "YES\n";
        yes = true;
        break;
      }
    }
    if (!yes) cout << "NO\n";
  }
  return;
}
signed main() {
  ios_base::sync_with_stdio(false);
  cout.precision(40);
  solve();
  return 0;
}
