n = int(input())
a = [int(_) for _ in input().split()]
m = int(input())
b = [int(_) for _ in input().split()]

dp = [[False for i in range(4300)]for i in range(2)]
dp[0][0] = True
dp[1][0] = True
c = False
for i in a:
    for j in range(4000):
        if dp[c][j]:
            dp[not(c)][j+i] = True
            dp[not(c)][j] = True
    c = not(c)

for i in b:
    if dp[c][i]:
        print("yes")
    else:
        print("no")

# print(dp[c][:20])
 n = int(input()) n int(input()) int input() input int(_) for _ in input().split() for _ in input().split() _ input().split() ().split () input split for _ in input().split() int(_) int _ a = [int(_) for _ in input().split()] a [int(_) for _ in input().split()] m = int(input()) m int(input()) int input() input int(_) for _ in input().split() for _ in input().split() _ input().split() ().split () input split for _ in input().split() int(_) int _ b = [int(_) for _ in input().split()] b [int(_) for _ in input().split()] [False for i in range(4300)]for i in range(2) for i in range(2) i range(2) range 2 for i in range(2) [False for i in range(4300)] dp = [[False for i in range(4300)]for i in range(2)] dp [[False for i in range(4300)]for i in range(2)] dp[0][0] = True dp[0][0] [0] dp 0 0 True dp[1][0] = True dp[1][0] [1] dp 1 0 True c = False c False for i in a:
    for j in range(4000):
        if dp[c][j]:
            dp[not(c)][j+i] = True
            dp[not(c)][j] = True
    c = not(c) i a for j in range(4000):
        if dp[c][j]:
            dp[not(c)][j+i] = True
            dp[not(c)][j] = True
     j range(4000) range 4000 if dp[c][j]:
            dp[not(c)][j+i] = True
            dp[not(c)][j] = True
     dp[c][j] [c] dp c j dp[not(c)][j+i] = True dp[not(c)][j+i] [not(c)] dp not(c) c j+i j i True dp[not(c)][j] = True dp[not(c)][j] [not(c)] dp not(c) c j True c = not(c) c not(c) c for i in b:
    if dp[c][i]:
        print("yes")
    else:
        print("no")

# print(dp[c][:20]) i b if dp[c][i]:
        print("yes")
    else:
        print("no")

# print(dp[c][:20]) dp[c][i] [c] dp c i print("yes") print "yes" print("no") print "no" b = [int(_) for _ in input().split()] [int(_) for _ in input().split()] b c = not(c) not(c) c n = int(input()) int(input()) n m = int(input()) int(input()) m c = False False c dp = [[False for i in range(4300)]for i in range(2)] [[False for i in range(4300)]for i in range(2)] dp a = [int(_) for _ in input().split()] [int(_) for _ in input().split()] a
n = int(input())
a = [int(_) for _ in input().split()]
m = int(input())
b = [int(_) for _ in input().split()]

dp = [[False for i in range(4300)]for i in range(2)]
dp[0][0] = True
dp[1][0] = True
c = False
for i in a:
    for j in range(4000):
        if dp[c][j]:
            dp[not(c)][j+i] = True
            dp[not(c)][j] = True
    c = not(c)

for i in b:
    if dp[c][i]:
        print("yes")
    else:
        print("no")

# print(dp[c][:20])

