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

result = set()
for i in range(2**n):
    tmp = 0
    for j in range(n):
        if i >> j & 1:
            tmp += arr[j]
    result.add(tmp)

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

result = set()
for i in range(2**n):
    tmp = 0
    for j in range(n):
        if i >> j & 1:
            tmp += arr[j]
    result.add(tmp)

for x in m:
    print("yes" if x in result else "no")
