#include <bits/stdc++.h>
using namespace std;
map<string, long long> us;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n, i;
  cin >> n;
  for (i = 1; i <= n; i++) {
    {
      string s;
      cin >> s;
      if (us[s] == 1) {
        cout << "YES" << '\n';
      } else
        cout << "NO" << '\n', us[s] = 1;
    }
  }
  return 0;
}
