n = int(input())
*A, = map(int, input().split())
q = int(input())
*Q, = map(int, input().split())

bits = 1
for a in A:
    bits |= bits << a

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

bits = 1
for a in A:
    bits |= bits << a

for q in Q:
    print("yes"*((bits >> q) & 1)or"no")