#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:1024000000,1024000000")
using namespace std;
map<string, int> M;
bool Ans[200005];
int main() {
  int n;
  string Name;
  while (cin >> n) {
    M.clear();
    memset(Ans, false, sizeof(Ans));
    for (int i = 0; i < n; i++) {
      cin >> Name;
      if (M[Name] == 0)
        M[Name] = 1;
      else
        Ans[i] = true;
    }
    for (int i = 0; i < n; i++) {
      if (Ans[i])
        cout << "Yes" << endl;
      else
        cout << "No" << endl;
    }
  }
  return 0;
}
