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

ans = []
for i in range(2**n):
    cnt = 0
    for j in range(n):
        if ((i>>j)&1): cnt += a[j]
    ans.append(cnt)
for x in q:
    print('yes' if (x in ans) else 'no') n = int(input()) n int(input()) int input() input a = list(map(int, input().split())) a list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split m = int(input()) m int(input()) int input() input q = list(map(int, input().split())) q list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split ans = [] ans [] for i in range(2**n):
    cnt = 0
    for j in range(n):
        if ((i>>j)&1): cnt += a[j]
    ans.append(cnt) i range(2**n) range 2**n 2 n cnt = 0 cnt 0 for j in range(n):
        if ((i>>j)&1): cnt += a[j]
     j range(n) range n if ((i>>j)&1): cnt += a[j]
     (i>>j)&1 i>>j i j 1 ans.append(cnt) ans.append ans append cnt for x in q:
    print('yes' if (x in ans) else 'no') x q print('yes' if (x in ans) else 'no') print 'yes' if (x in ans) else 'no' x in ans x ans 'yes' 'no' m = int(input()) int(input()) m q = list(map(int, input().split())) list(map(int, input().split())) q a = list(map(int, input().split())) list(map(int, input().split())) a cnt = 0 0 cnt n = int(input()) int(input()) n ans = [] [] ans
n = int(input())
a = list(map(int, input().split()))
m = int(input())
q = list(map(int, input().split()))

ans = []
for i in range(2**n):
    cnt = 0
    for j in range(n):
        if ((i>>j)&1): cnt += a[j]
    ans.append(cnt)
for x in q:
    print('yes' if (x in ans) else 'no')
