N,M,L = map(int,input().split()) A = list(map(int,input().split())) C = 1000 dp = [0] * (C + 1) dp[L] = 1 for a in A: for i in range(C + 1): if dp[i] == 1: dp[(i + a) // 2] = 1 if dp[M]: print('Yes') else: print('No')