n = int(input())
SET1 = {0}
for a in map(int, input().split()):
    for b in tuple(SET1):
        SET1.add(a + b)
input()
for m in map(int, input().split()):
    print('yes' if m in SET1 else 'no') n = int(input()) n int(input()) int input() input SET1 = {0} SET1 {0} for a in map(int, input().split()):
    for b in tuple(SET1):
        SET1.add(a + b) a map(int, input().split()) map int input().split() ().split () input split for b in tuple(SET1):
        SET1.add(a + b) b tuple(SET1) tuple SET1 SET1.add(a + b) SET1.add SET1 add a + b a b input() input for m in map(int, input().split()):
    print('yes' if m in SET1 else 'no') m map(int, input().split()) map int input().split() ().split () input split print('yes' if m in SET1 else 'no') print 'yes' if m in SET1 else 'no' m in SET1 m SET1 'yes' 'no' n = int(input()) int(input()) n SET1 = {0} {0} SET1
n = int(input())
SET1 = {0}
for a in map(int, input().split()):
    for b in tuple(SET1):
        SET1.add(a + b)
input()
for m in map(int, input().split()):
    print('yes' if m in SET1 else 'no')
