#include <bits/stdc++.h>
using namespace std;
ifstream in("seq.in");
ofstream out("seq.out");
const int MAXN = 1e9 + 7;
const long long MAXL = 1e18;
const int N = 1e7;
const double eps = 1e-13;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  map<string, int> mymap;
  for (int i = 0; i < n; ++i) {
    string s;
    cin >> s;
    if (mymap[s])
      cout << "YES\n";
    else
      cout << "NO\n";
    mymap[s]++;
  }
  return 0;
}
