a = int(input())
main = int(input())
for _ in range(a):
    print("YES" if int(input()) >= main else "NO")
32fdd5caee60db9fc53eba5dbb68af370f474780
<mask token>

<mask token>
for _ in range(a):
    print('YES' if int(input()) >= main else 'NO')

a = int(input())
main = int(input())
for _ in range(a):
    print('YES' if int(input()) >= main else 'NO')

a = int(input())
main = int(input())
for _ in range(a):
    print("YES" if int(input()) >= main else "NO")