#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  vector<string> myvec;
  for (int i = 0; i < n; i++) {
    string st;
    cin >> st;
    myvec.push_back(st);
  }
  int f = 0;
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < i; j++) {
      string str1 = myvec[i];
      string str2 = myvec[j];
      if (str1.compare(str2) == 0) {
        f = 1;
        cout << "yes" << endl;
        break;
      }
    }
    if (f == 0) cout << "no" << endl;
    f = 0;
  }
  return 0;
}
