n = int(input())
A = list(map(int, input().split()))
q = int(input())
B = list(map(int, input().split()))

s = set()
def check(i, m):
    if i == n:
        s.add(m)
        return
    check(i+1, m+A[i])
    check(i+1, m)

check(0,0)

for i in B:
    if i in s:
        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 s = set() s set() set def check(i, m):
    if i == n:
        s.add(m)
        return
    check(i+1, m+A[i])
    check(i+1, m) check if i == n:
        s.add(m)
        return
     i == n i n s.add(m) s.add s add m return check(i+1, m+A[i]) check i+1 i 1 m+A[i] m A[i] A i check(i+1, m) check i+1 i 1 m i i m m check(0,0) check 0 0 for i in B:
    if i in s:
        print('yes')
    else:
        print('no') i B if i in s:
        print('yes')
    else:
        print('no') i in s i s print('yes') print 'yes' print('no') print 'no' s = set() set() s def check(i, m):
    if i == n:
        s.add(m)
        return
    check(i+1, m+A[i])
    check(i+1, m) def check(i, m):
    if i == n:
        s.add(m)
        return
    check(i+1, m+A[i])
    check(i+1, m) check B = list(map(int, input().split())) list(map(int, input().split())) B n = int(input()) int(input()) n q = int(input()) int(input()) q 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()))

s = set()
def check(i, m):
    if i == n:
        s.add(m)
        return
    check(i+1, m+A[i])
    check(i+1, m)

check(0,0)

for i in B:
    if i in s:
        print('yes')
    else:
        print('no')
