input()
bits = 1
for a in map(int, input().split()): bits |= bits << a
input()
print(*("yes"*((bits >> q) & 1)or"no" for q in map(int, input().split())), sep='\n') input() input bits = 1 bits 1 for a in map(int, input().split()): bits |= bits << a a map(int, input().split()) map int input().split() ().split () input split input() input "yes"*((bits >> q) & 1)or"no" for q in map(int, input().split()) for q in map(int, input().split()) q map(int, input().split()) map int input().split() ().split () input split for q in map(int, input().split()) "yes"*((bits >> q) & 1)or"no" "yes"*((bits >> q) & 1) "yes" (bits >> q) & 1 bits >> q bits q 1 "no" print(*("yes"*((bits >> q) & 1)or"no" for q in map(int, input().split())), sep='\n') print *("yes"*((bits >> q) & 1)or"no" for q in map(int, input().split())) ("yes"*((bits >> q) & 1)or"no" for q in map(int, input().split())) sep='\n' sep '\n' bits = 1 1 bits
input()
bits = 1
for a in map(int, input().split()): bits |= bits << a
input()
print(*("yes"*((bits >> q) & 1)or"no" for q in map(int, input().split())), sep='\n')