n, x, m = map(int, input().split()) A = list(map(int, input().split())) ma = 0 for i, a in enumerate(A, 1): k = 0 while a > x: a //= 2 k += 1 ma = max(ma, k * i) if ma <= m: print("Yes") else: print("No")