n = int(input())
nums = list(map(int, input().split()))
q = int(input())
m = list(map(int, input().split()))

li = []
for i in range(2**n):
    an = format(i, 'b').zfill(n)
    li.append(an)

ans = []
for lis in li:
    num = 0
    for i in range(n):
        if lis[i] == '1':
            num += nums[i]
    ans.append(num)

for j in m:
    if j in ans:
        print('yes')
    else:
        print('no') n = int(input()) n int(input()) int input() input nums = list(map(int, input().split())) nums list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split q = int(input()) q int(input()) int input() input m = list(map(int, input().split())) m list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split li = [] li [] for i in range(2**n):
    an = format(i, 'b').zfill(n)
    li.append(an) i range(2**n) range 2**n 2 n an = format(i, 'b').zfill(n) an format(i, 'b').zfill(n) (i, 'b').zfill (i, 'b') format i 'b' zfill n li.append(an) li.append li append an ans = [] ans [] for lis in li:
    num = 0
    for i in range(n):
        if lis[i] == '1':
            num += nums[i]
    ans.append(num) lis li num = 0 num 0 for i in range(n):
        if lis[i] == '1':
            num += nums[i]
     i range(n) range n if lis[i] == '1':
            num += nums[i]
     lis[i] == '1' lis[i] lis i '1' num += nums[i] num nums[i] nums i ans.append(num) ans.append ans append num for j in m:
    if j in ans:
        print('yes')
    else:
        print('no') j m if j in ans:
        print('yes')
    else:
        print('no') j in ans j ans print('yes') print 'yes' print('no') print 'no' n = int(input()) int(input()) n ans = [] [] ans an = format(i, 'b').zfill(n) format(i, 'b').zfill(n) an q = int(input()) int(input()) q num = 0 0 num m = list(map(int, input().split())) list(map(int, input().split())) m nums = list(map(int, input().split())) list(map(int, input().split())) nums num += nums[i] nums[i] num li = [] [] li
n = int(input())
nums = list(map(int, input().split()))
q = int(input())
m = list(map(int, input().split()))

li = []
for i in range(2**n):
    an = format(i, 'b').zfill(n)
    li.append(an)

ans = []
for lis in li:
    num = 0
    for i in range(n):
        if lis[i] == '1':
            num += nums[i]
    ans.append(num)

for j in m:
    if j in ans:
        print('yes')
    else:
        print('no')
