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