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

def make_list(A):
    n = len(A)
    result = []
    for i in range(2**n):
        tmp = 0
        if i == 0:
            idx = ['0' for _ in range(n)]
        else:
            idx = list(bin(i).lstrip('0b').zfill(n))
        for num, j in enumerate(idx):
            if j == '1':
                tmp += A[num]
        result.append(tmp)
    return result


res = make_list(A)
for i in m:
    if i in res:
        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 m = list(map(int, input().split())) m list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split def make_list(A):
    n = len(A)
    result = []
    for i in range(2**n):
        tmp = 0
        if i == 0:
            idx = ['0' for _ in range(n)]
        else:
            idx = list(bin(i).lstrip('0b').zfill(n))
        for num, j in enumerate(idx):
            if j == '1':
                tmp += A[num]
        result.append(tmp)
    return result make_list n = len(A) n len(A) len A result = [] result [] for i in range(2**n):
        tmp = 0
        if i == 0:
            idx = ['0' for _ in range(n)]
        else:
            idx = list(bin(i).lstrip('0b').zfill(n))
        for num, j in enumerate(idx):
            if j == '1':
                tmp += A[num]
        result.append(tmp)
     i range(2**n) range 2**n 2 n tmp = 0 tmp 0 if i == 0:
            idx = ['0' for _ in range(n)]
        else:
            idx = list(bin(i).lstrip('0b').zfill(n))
         i == 0 i 0 '0' for _ in range(n) for _ in range(n) _ range(n) range n for _ in range(n) '0' idx = ['0' for _ in range(n)] idx ['0' for _ in range(n)] idx = list(bin(i).lstrip('0b').zfill(n)) idx list(bin(i).lstrip('0b').zfill(n)) list bin(i).lstrip('0b').zfill(n) (i).lstrip('0b').zfill (i).lstrip('0b') (i).lstrip (i) bin i lstrip '0b' zfill n for num, j in enumerate(idx):
            if j == '1':
                tmp += A[num]
         num j enumerate(idx) enumerate idx if j == '1':
                tmp += A[num]
         j == '1' j '1' tmp += A[num] tmp A[num] A num result.append(tmp) result.append result append tmp return result result A A res = make_list(A) res make_list(A) make_list A for i in m:
    if i in res:
        print('yes')
    else:
        print('no') i m if i in res:
        print('yes')
    else:
        print('no') i in res i res print('yes') print 'yes' print('no') print 'no' q = int(input()) int(input()) q A = list(map(int, input().split())) list(map(int, input().split())) A n = int(input()) int(input()) n m = list(map(int, input().split())) list(map(int, input().split())) m def make_list(A):
    n = len(A)
    result = []
    for i in range(2**n):
        tmp = 0
        if i == 0:
            idx = ['0' for _ in range(n)]
        else:
            idx = list(bin(i).lstrip('0b').zfill(n))
        for num, j in enumerate(idx):
            if j == '1':
                tmp += A[num]
        result.append(tmp)
    return result def make_list(A):
    n = len(A)
    result = []
    for i in range(2**n):
        tmp = 0
        if i == 0:
            idx = ['0' for _ in range(n)]
        else:
            idx = list(bin(i).lstrip('0b').zfill(n))
        for num, j in enumerate(idx):
            if j == '1':
                tmp += A[num]
        result.append(tmp)
    return result make_list res = make_list(A) make_list(A) res
n = int(input())
A = list(map(int, input().split()))
q = int(input())
m = list(map(int, input().split()))

def make_list(A):
    n = len(A)
    result = []
    for i in range(2**n):
        tmp = 0
        if i == 0:
            idx = ['0' for _ in range(n)]
        else:
            idx = list(bin(i).lstrip('0b').zfill(n))
        for num, j in enumerate(idx):
            if j == '1':
                tmp += A[num]
        result.append(tmp)
    return result


res = make_list(A)
for i in m:
    if i in res:
        print('yes')
    else:
        print('no')
