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