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: nx = dp.copy() for i in range(C + 1): if dp[i] == 1: nx[(i + a) // 2] = 1 dp = nx if dp[M]: print('Yes') else: print('No')