#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string s[n];
  string a[n];
  for (int i = 0; i < n; i++) {
    cin >> s[i];
  }
  for (int i = n - 1; i >= 0; i--) {
    for (int j = i - 1; j >= 0; j--) {
      if (s[i].compare(s[j]) == 0) {
        a[i] = "Yes";
        break;
      } else
        a[i] = "No";
    }
  }
  a[0] = "No";
  for (int i = 0; i < n; i++) {
    cout << a[i] << endl;
  }
}
