n=int(input())
A=[int(x) for x in input().split()]
q=int(input())
m=[int(x) for x in input().split()]

A_sum = []
for bit in range(1,2**n):
    a_sum = 0
    for i in range(n):
        if bin((bit>>i) & 0b1) == '0b1':
            a_sum += A[i]
    A_sum.append(a_sum)
            
for mi in m:
    if mi in A_sum:
        print('yes')
    else:
        print('no') n=int(input()) n int(input()) int input() input int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x A=[int(x) for x in input().split()] A [int(x) for x in input().split()] q=int(input()) q int(input()) int input() input int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x m=[int(x) for x in input().split()] m [int(x) for x in input().split()] A_sum = [] A_sum [] for bit in range(1,2**n):
    a_sum = 0
    for i in range(n):
        if bin((bit>>i) & 0b1) == '0b1':
            a_sum += A[i]
    A_sum.append(a_sum)
             bit range(1,2**n) range 1 2**n 2 n a_sum = 0 a_sum 0 for i in range(n):
        if bin((bit>>i) & 0b1) == '0b1':
            a_sum += A[i]
     i range(n) range n if bin((bit>>i) & 0b1) == '0b1':
            a_sum += A[i]
     bin((bit>>i) & 0b1) == '0b1' bin((bit>>i) & 0b1) bin (bit>>i) & 0b1 bit>>i bit i 0b1 '0b1' a_sum += A[i] a_sum A[i] A i A_sum.append(a_sum) A_sum.append A_sum append a_sum for mi in m:
    if mi in A_sum:
        print('yes')
    else:
        print('no') mi m if mi in A_sum:
        print('yes')
    else:
        print('no') mi in A_sum mi A_sum print('yes') print 'yes' print('no') print 'no' n=int(input()) int(input()) n A_sum = [] [] A_sum A=[int(x) for x in input().split()] [int(x) for x in input().split()] A a_sum = 0 0 a_sum q=int(input()) int(input()) q m=[int(x) for x in input().split()] [int(x) for x in input().split()] m a_sum += A[i] A[i] a_sum
n=int(input())
A=[int(x) for x in input().split()]
q=int(input())
m=[int(x) for x in input().split()]

A_sum = []
for bit in range(1,2**n):
    a_sum = 0
    for i in range(n):
        if bin((bit>>i) & 0b1) == '0b1':
            a_sum += A[i]
    A_sum.append(a_sum)
            
for mi in m:
    if mi in A_sum:
        print('yes')
    else:
        print('no')
