#include <bits/stdc++.h>
using namespace std;
const int rw[] = {-1, 0, 1, 0, -1, 1, -1, 1},
          cl[] = {0, 1, 0, -1, -1, 1, 1, -1};
const int N = 100001, inf = 0x7f7f7f7f;
map<string, int> k;
int t;
int n;
string a;
int main() {
  cin >> n;
  for (long long x = 1; x <= n; x += 1) {
    cin >> a;
    if (k[a])
      cout << "YES\n";
    else
      cout << "NO\n";
    k[a] = 1;
  }
  return 0;
}
