import itertools

n = input()
a = list(map(int, input().split()))
q = input()
 
aset = set()
for i in range(1, len(a) + 1):
    aset |= set(sum(combi) for combi in itertools.combinations(a, i))
 
for m in map(int, input().split()):
    print('yes' if m in aset else 'no') import itertools itertools n = input() n 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 = input() q input() input aset = set() aset set() set for i in range(1, len(a) + 1):
    aset |= set(sum(combi) for combi in itertools.combinations(a, i))
  i range(1, len(a) + 1) range 1 len(a) + 1 len(a) len a 1 aset |= set(sum(combi) for combi in itertools.combinations(a, i)) aset set(sum(combi) for combi in itertools.combinations(a, i)) set sum(combi) sum combi for m in map(int, input().split()):
    print('yes' if m in aset else 'no') m map(int, input().split()) map int input().split() ().split () input split print('yes' if m in aset else 'no') print 'yes' if m in aset else 'no' m in aset m aset 'yes' 'no' aset |= set(sum(combi) for combi in itertools.combinations(a, i)) set(sum(combi) for combi in itertools.combinations(a, i)) aset n = input() input() n q = input() input() q aset = set() set() aset a = list(map(int, input().split())) list(map(int, input().split())) a
import itertools

n = input()
a = list(map(int, input().split()))
q = input()
 
aset = set()
for i in range(1, len(a) + 1):
    aset |= set(sum(combi) for combi in itertools.combinations(a, i))
 
for m in map(int, input().split()):
    print('yes' if m in aset else 'no')