#include <bits/stdc++.h>
const int N = 2e3 + 10;
const int inf = 0x3f3f3f3f;
const double eps = 1e-7;
const int mod = 1e9 + 7;
const double p = acos(-1.0);
using namespace std;
map<string, int> m;
int main() {
  m.clear();
  int n;
  cin >> n;
  string s;
  while (n--) {
    cin >> s;
    if (m[s] == 1)
      puts("YES");
    else
      puts("NO");
    m[s] = 1;
  }
  return 0;
}
