#include <bits/stdc++.h>
using namespace std;
int N;
string a[110];
int main() {
  cin >> N;
  for (int i = 1; i <= N; i++) cin >> a[i];
  for (int i = 1; i <= N; i++) {
    int flag = false;
    for (int j = 1; j < i; j++)
      if (a[i] == a[j]) {
        flag = true;
        break;
      }
    if (flag)
      cout << "YES"
           << "\n";
    else
      cout << "NO"
           << "\n";
  }
  return 0;
}
