from itertools import product

n = int(input())
A = map(int,input().split())
sums = set(map(sum,product(*((0,a) for a in A))))
q = int(input())
for m in map(int,input().split()):
    print('yes' if m in sums else 'no') from itertools import product n = int(input()) n int(input()) int input() input A = map(int,input().split()) A map(int,input().split()) map int input().split() ().split () input split (0,a) for a in A for a in A a A for a in A (0,a) 0 a sums = set(map(sum,product(*((0,a) for a in A)))) sums set(map(sum,product(*((0,a) for a in A)))) set map(sum,product(*((0,a) for a in A))) map sum product(*((0,a) for a in A)) product *((0,a) for a in A) ((0,a) for a in A) q = int(input()) q int(input()) int input() input for m in map(int,input().split()):
    print('yes' if m in sums else 'no') m map(int,input().split()) map int input().split() ().split () input split print('yes' if m in sums else 'no') print 'yes' if m in sums else 'no' m in sums m sums 'yes' 'no' n = int(input()) int(input()) n A = map(int,input().split()) map(int,input().split()) A q = int(input()) int(input()) q sums = set(map(sum,product(*((0,a) for a in A)))) set(map(sum,product(*((0,a) for a in A)))) sums
from itertools import product

n = int(input())
A = map(int,input().split())
sums = set(map(sum,product(*((0,a) for a in A))))
q = int(input())
for m in map(int,input().split()):
    print('yes' if m in sums else 'no')
