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

cnt = [0] * (2000 * 20)

for i in range(1, 2**n + 1):
    SUM = 0
    for j in range(n):
        if i>>j & 1:
            SUM += a[j]
    cnt[SUM] = 1

for _m in m:
    if cnt[_m] == 1:
        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 cnt = [0] * (2000 * 20) cnt [0] * (2000 * 20) [0] 0 2000 * 20 2000 20 for i in range(1, 2**n + 1):
    SUM = 0
    for j in range(n):
        if i>>j & 1:
            SUM += a[j]
    cnt[SUM] = 1 i range(1, 2**n + 1) range 1 2**n + 1 2**n 2 n 1 SUM = 0 SUM 0 for j in range(n):
        if i>>j & 1:
            SUM += a[j]
     j range(n) range n if i>>j & 1:
            SUM += a[j]
     i>>j & 1 i>>j i j 1 SUM += a[j] SUM a[j] a j cnt[SUM] = 1 cnt[SUM] cnt SUM 1 for _m in m:
    if cnt[_m] == 1:
        print("yes")
    else:
        print("no") _m m if cnt[_m] == 1:
        print("yes")
    else:
        print("no") cnt[_m] == 1 cnt[_m] cnt _m 1 print("yes") print "yes" print("no") print "no" SUM = 0 0 SUM m = list(map(int,input().split())) list(map(int,input().split())) m cnt = [0] * (2000 * 20) [0] * (2000 * 20) cnt SUM += a[j] a[j] SUM a = list(map(int,input().split())) list(map(int,input().split())) a q = int(input()) int(input()) q n = int(input()) int(input()) n
n = int(input())
a = list(map(int,input().split()))
q = int(input())
m = list(map(int,input().split()))

cnt = [0] * (2000 * 20)

for i in range(1, 2**n + 1):
    SUM = 0
    for j in range(n):
        if i>>j & 1:
            SUM += a[j]
    cnt[SUM] = 1

for _m in m:
    if cnt[_m] == 1:
        print("yes")
    else:
        print("no")
