n = int(input())
A = list(map(int, input().split()))
q = int(input())
nums = list(map(int, input().split()))

sum_set = set()
for i in range(1, 2 ** n):
    total = 0
    for j in range(n):
        if i >> j & 1:
            total += A[j]
    sum_set.add(total)

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

sum_set = set()
for i in range(1, 2 ** n):
    total = 0
    for j in range(n):
        if i >> j & 1:
            total += A[j]
    sum_set.add(total)

for num in nums:
    print('yes' if num in sum_set else 'no')

