#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j, k, n;
  string s;
  map<string, bool> vis;
  cin >> n;
  while (n--) {
    cin >> s;
    if (vis[s] == 1)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
    vis[s] = 1;
  }
}
