n = int(input())
A = list(map(int, input().split()))
q = int(input())
M = list(map(int, input().split()))
bits = 1
for a in A:
    bits |= bits << a
for m in M:
    print('yes' if (bits >> m) & 1 else 'no') n = int(input()) n int(input()) int 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 = int(input()) q int(input()) int input() input M = list(map(int, input().split())) M list(map(int, input().split())) list 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 m in M:
    print('yes' if (bits >> m) & 1 else 'no') m M print('yes' if (bits >> m) & 1 else 'no') print 'yes' if (bits >> m) & 1 else 'no' (bits >> m) & 1 bits >> m bits m 1 'yes' 'no' A = list(map(int, input().split())) list(map(int, input().split())) A bits |= bits << a bits << a bits bits = 1 1 bits M = list(map(int, input().split())) list(map(int, input().split())) M n = int(input()) int(input()) n q = int(input()) int(input()) q
n = int(input())
A = list(map(int, input().split()))
q = int(input())
M = list(map(int, input().split()))
bits = 1
for a in A:
    bits |= bits << a
for m in M:
    print('yes' if (bits >> m) & 1 else 'no')
