n = int(input())
a = list(map(int,input().split()))
q = int(input())
b = list(map(int,input().split()))

sumn = {0}
for i in a:
    sumn |= {i + x for x in sumn}
for i in b:
    if i in sumn:
        print('yes')
    else:
        print('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 b = list(map(int,input().split())) b list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split sumn = {0} sumn {0} for i in a:
    sumn |= {i + x for x in sumn} i a i + x for x in sumn for x in sumn x sumn for x in sumn i + x i x sumn |= {i + x for x in sumn} sumn for i in b:
    if i in sumn:
        print('yes')
    else:
        print('no') i b if i in sumn:
        print('yes')
    else:
        print('no') i in sumn i sumn print('yes') print 'yes' print('no') print 'no' q = int(input()) int(input()) q b = list(map(int,input().split())) list(map(int,input().split())) b sumn = {0} {0} sumn sumn |= {i + x for x in sumn} sumn n = int(input()) int(input()) n a = list(map(int,input().split())) list(map(int,input().split())) a
n = int(input())
a = list(map(int,input().split()))
q = int(input())
b = list(map(int,input().split()))

sumn = {0}
for i in a:
    sumn |= {i + x for x in sumn}
for i in b:
    if i in sumn:
        print('yes')
    else:
        print('no')

