n = int(input())
seq = list(map(int, input().split()))
q = int(input())
mlist = list(map(int, input().split()))
mins = min(seq)
sums = 0
for a in seq:
    sums += a

def check(i, m):
    global mins
    if m == 0:
        return True
    elif i >= n or mins > m:
        return False
    res = check(i+1, m) or check(i+1, m - seq[i])
    return res

for m in mlist:
    if (mins > m or sums < m):
        print('no')
    elif(check(0,m)):
        print('yes')
    else:
        print('no') n = int(input()) n int(input()) int input() input seq = list(map(int, input().split())) seq 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 mlist = list(map(int, input().split())) mlist list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split mins = min(seq) mins min(seq) min seq sums = 0 sums 0 for a in seq:
    sums += a a seq sums += a sums a def check(i, m):
    global mins
    if m == 0:
        return True
    elif i >= n or mins > m:
        return False
    res = check(i+1, m) or check(i+1, m - seq[i])
    return res check global mins if m == 0:
        return True
    elif i >= n or mins > m:
        return False
     m == 0 m 0 return True True elif i >= n or mins > m:
        return False
     i >= n or mins > m i >= n i n mins > m mins m return False False res = check(i+1, m) or check(i+1, m - seq[i]) res check(i+1, m) or check(i+1, m - seq[i]) check(i+1, m) check i+1 i 1 m check(i+1, m - seq[i]) check i+1 i 1 m - seq[i] m seq[i] seq i return res res i i m m for m in mlist:
    if (mins > m or sums < m):
        print('no')
    elif(check(0,m)):
        print('yes')
    else:
        print('no') m mlist if (mins > m or sums < m):
        print('no')
    elif(check(0,m)):
        print('yes')
    else:
        print('no') mins > m or sums < m mins > m mins m sums < m sums m print('no') print 'no' elif(check(0,m)):
        print('yes')
     check(0,m) check 0 m print('yes') print 'yes' print('no') print 'no' sums += a a sums seq = list(map(int, input().split())) list(map(int, input().split())) seq n = int(input()) int(input()) n mlist = list(map(int, input().split())) list(map(int, input().split())) mlist q = int(input()) int(input()) q mins = min(seq) min(seq) mins sums = 0 0 sums def check(i, m):
    global mins
    if m == 0:
        return True
    elif i >= n or mins > m:
        return False
    res = check(i+1, m) or check(i+1, m - seq[i])
    return res def check(i, m):
    global mins
    if m == 0:
        return True
    elif i >= n or mins > m:
        return False
    res = check(i+1, m) or check(i+1, m - seq[i])
    return res check
n = int(input())
seq = list(map(int, input().split()))
q = int(input())
mlist = list(map(int, input().split()))
mins = min(seq)
sums = 0
for a in seq:
    sums += a

def check(i, m):
    global mins
    if m == 0:
        return True
    elif i >= n or mins > m:
        return False
    res = check(i+1, m) or check(i+1, m - seq[i])
    return res

for m in mlist:
    if (mins > m or sums < m):
        print('no')
    elif(check(0,m)):
        print('yes')
    else:
        print('no')
