#include <bits/stdc++.h>
using namespace std;
const long long INF = 1e18;
const int mod = 1e9 + 7;
const int N = 1e5 + 10;
inline int add(int x, int y) {
  x += y;
  if (x >= mod) x -= mod;
  return x;
}
inline int mul(int x, int y) {
  x = (1LL * x * y) % mod;
  return x;
}
int main() {
  ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  int n;
  cin >> n;
  map<string, int> M;
  for (int i = 1; i <= n; ++i) {
    string s;
    cin >> s;
    if (M.count(s)) {
      cout << "YES\n";
    } else {
      cout << "NO\n";
    }
    M[s];
  }
  return 0;
}
