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

result = []
# 
for bit in range(1<<n):
    score = 0
    # 
    for i in range((n)):
        # 
        if bit & (1<<i):
            score += a[i]

    result.append(score)

for m_i in m:
    if m_i in result:
        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 result = [] result [] for bit in range(1<<n):
    score = 0
    # 
    for i in range((n)):
        # 
        if bit & (1<<i):
            score += a[i]

    result.append(score) bit range(1<<n) range 1<<n 1 n score = 0 score 0 for i in range((n)):
        # 
        if bit & (1<<i):
            score += a[i]

     i range((n)) range n if bit & (1<<i):
            score += a[i]

     bit & (1<<i) bit 1<<i 1 i score += a[i] score a[i] a i result.append(score) result.append result append score for m_i in m:
    if m_i in result:
        print('yes')
    else :
        print('no') m_i m if m_i in result:
        print('yes')
    else :
        print('no') m_i in result m_i result print('yes') print 'yes' print('no') print 'no' 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 score += a[i] a[i] score score = 0 0 score result = [] [] result q = int(input()) int(input()) q
n = int(input())
a = list(map(int, input().split()))
q = int(input())
m = list(map(int, input().split()))

result = []
# 
for bit in range(1<<n):
    score = 0
    # 
    for i in range((n)):
        # 
        if bit & (1<<i):
            score += a[i]

    result.append(score)

for m_i in m:
    if m_i in result:
        print('yes')
    else :
        print('no')
