#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string s[1000];
  for (int i = 0; i < n; i++) {
    cin >> s[i];
    for (int j = 0; j < n; j++) {
      if (s[i] == s[j] && i != j) {
        cout << "YES" << endl;
        break;
      }
      if (j == n - 1) {
        cout << "NO" << endl;
      }
    }
  }
}
