n = int(input())
A = list(map(int, input().split()))
q = int(input())
M = list(map(int, input().split()))
T = set()
for i in range(1, 2 ** n):
    total = 0
    for j in range(n):
        if i >> j & 1:
            total += A[j]
    T.add(total)
for m in M:
    if m in T:
        print('yes')
    else:
        print('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 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 T = set() T set() set for i in range(1, 2 ** n):
    total = 0
    for j in range(n):
        if i >> j & 1:
            total += A[j]
    T.add(total) i range(1, 2 ** n) range 1 2 ** n 2 n total = 0 total 0 for j in range(n):
        if i >> j & 1:
            total += A[j]
     j range(n) range n if i >> j & 1:
            total += A[j]
     i >> j & 1 i >> j i j 1 total += A[j] total A[j] A j T.add(total) T.add T add total for m in M:
    if m in T:
        print('yes')
    else:
        print('no') m M if m in T:
        print('yes')
    else:
        print('no') m in T m T print('yes') print 'yes' print('no') print 'no' M = list(map(int, input().split())) list(map(int, input().split())) M A = list(map(int, input().split())) list(map(int, input().split())) A n = int(input()) int(input()) n total += A[j] A[j] total total = 0 0 total T = set() set() T q = int(input()) int(input()) q
n = int(input())
A = list(map(int, input().split()))
q = int(input())
M = list(map(int, input().split()))
T = set()
for i in range(1, 2 ** n):
    total = 0
    for j in range(n):
        if i >> j & 1:
            total += A[j]
    T.add(total)
for m in M:
    if m in T:
        print('yes')
    else:
        print('no')
