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

d = []
for x in range(1 << n):
    b = '{:0{}b}'.format(x, n)
    d.append(sum(a[i] for i in range(n) if b[i] == '1'))

for m in M:
    print('yes' if m in d else 'no') n = int(input()) n int(input()) int input() input a = list(map(int, input().strip().split())) a list(map(int, input().strip().split())) list map(int, input().strip().split()) map int input().strip().split() ().strip().split ().strip() ().strip () input strip split q = int(input()) q int(input()) int input() input M = list(map(int, input().strip().split())) M list(map(int, input().strip().split())) list map(int, input().strip().split()) map int input().strip().split() ().strip().split ().strip() ().strip () input strip split d = [] d [] for x in range(1 << n):
    b = '{:0{}b}'.format(x, n)
    d.append(sum(a[i] for i in range(n) if b[i] == '1')) x range(1 << n) range 1 << n 1 n b = '{:0{}b}'.format(x, n) b '{:0{}b}'.format(x, n) '{:0{}b}'.format '{:0{}b}' format x n d.append(sum(a[i] for i in range(n) if b[i] == '1')) d.append d append sum(a[i] for i in range(n) if b[i] == '1') sum a[i] a i for m in M:
    print('yes' if m in d else 'no') m M print('yes' if m in d else 'no') print 'yes' if m in d else 'no' m in d m d 'yes' 'no' a = list(map(int, input().strip().split())) list(map(int, input().strip().split())) a q = int(input()) int(input()) q b = '{:0{}b}'.format(x, n) '{:0{}b}'.format(x, n) b M = list(map(int, input().strip().split())) list(map(int, input().strip().split())) M n = int(input()) int(input()) n d = [] [] d
n = int(input())
a = list(map(int, input().strip().split()))
q = int(input())
M = list(map(int, input().strip().split()))

d = []
for x in range(1 << n):
    b = '{:0{}b}'.format(x, n)
    d.append(sum(a[i] for i in range(n) if b[i] == '1'))

for m in M:
    print('yes' if m in d else 'no')