
n = int(raw_input())
A = map(int, raw_input().split())

q = int(raw_input())
M = map(int, raw_input().split())

result = []
for i in range(q):
    result.append('no')

def adder(axis = 0, nums = [0], M = [0], q = 0):
    for i in range(q):
        if M[i] == axis:
            result[i] = 'yes'
    length = len(nums)
    if length != 0:
        for i in range(length):
            sum_n = axis + nums[i]
            adder(sum_n, nums[i+1:], M, q)

for i in range(n):
    adder(A[i], A[i+1:], M, q)

for i in result:
    print(i) n = int(raw_input()) n int(raw_input()) int raw_input() raw_input A = map(int, raw_input().split()) A map(int, raw_input().split()) map int raw_input().split() ().split () raw_input split q = int(raw_input()) q int(raw_input()) int raw_input() raw_input M = map(int, raw_input().split()) M map(int, raw_input().split()) map int raw_input().split() ().split () raw_input split result = [] result [] for i in range(q):
    result.append('no') i range(q) range q result.append('no') result.append result append 'no' def adder(axis = 0, nums = [0], M = [0], q = 0):
    for i in range(q):
        if M[i] == axis:
            result[i] = 'yes'
    length = len(nums)
    if length != 0:
        for i in range(length):
            sum_n = axis + nums[i]
            adder(sum_n, nums[i+1:], M, q) adder for i in range(q):
        if M[i] == axis:
            result[i] = 'yes'
     i range(q) range q if M[i] == axis:
            result[i] = 'yes'
     M[i] == axis M[i] M i axis result[i] = 'yes' result[i] result i 'yes' length = len(nums) length len(nums) len nums if length != 0:
        for i in range(length):
            sum_n = axis + nums[i]
            adder(sum_n, nums[i+1:], M, q) length != 0 length 0 for i in range(length):
            sum_n = axis + nums[i]
            adder(sum_n, nums[i+1:], M, q) i range(length) range length sum_n = axis + nums[i] sum_n axis + nums[i] axis nums[i] nums i adder(sum_n, nums[i+1:], M, q) adder sum_n nums[i+1:] nums i+1: i+1 i 1 M q axis = 0 axis 0 nums = [0] nums [0] 0 M = [0] M [0] 0 q = 0 q 0 for i in range(n):
    adder(A[i], A[i+1:], M, q) i range(n) range n adder(A[i], A[i+1:], M, q) adder A[i] A i A[i+1:] A i+1: i+1 i 1 M q for i in result:
    print(i) i result print(i) print i def adder(axis = 0, nums = [0], M = [0], q = 0):
    for i in range(q):
        if M[i] == axis:
            result[i] = 'yes'
    length = len(nums)
    if length != 0:
        for i in range(length):
            sum_n = axis + nums[i]
            adder(sum_n, nums[i+1:], M, q) def adder(axis = 0, nums = [0], M = [0], q = 0):
    for i in range(q):
        if M[i] == axis:
            result[i] = 'yes'
    length = len(nums)
    if length != 0:
        for i in range(length):
            sum_n = axis + nums[i]
            adder(sum_n, nums[i+1:], M, q) adder q = int(raw_input()) int(raw_input()) q A = map(int, raw_input().split()) map(int, raw_input().split()) A result = [] [] result M = map(int, raw_input().split()) map(int, raw_input().split()) M n = int(raw_input()) int(raw_input()) n

n = int(raw_input())
A = map(int, raw_input().split())

q = int(raw_input())
M = map(int, raw_input().split())

result = []
for i in range(q):
    result.append('no')

def adder(axis = 0, nums = [0], M = [0], q = 0):
    for i in range(q):
        if M[i] == axis:
            result[i] = 'yes'
    length = len(nums)
    if length != 0:
        for i in range(length):
            sum_n = axis + nums[i]
            adder(sum_n, nums[i+1:], M, q)

for i in range(n):
    adder(A[i], A[i+1:], M, q)

for i in result:
    print(i)