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

values = set({})
for num in range(1 << n):
    count = 0
    for k in range(n):
        if num & (1 << k) == 1 << k:
            count += A[k]
    # print(num, count)
    values.add(count)

m = int(input())
Q = list(map(int, input().split()))
for q in Q:
    if q in values:
        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 values = set({}) values set({}) set {} for num in range(1 << n):
    count = 0
    for k in range(n):
        if num & (1 << k) == 1 << k:
            count += A[k]
    # print(num, count)
    values.add(count) num range(1 << n) range 1 << n 1 n count = 0 count 0 for k in range(n):
        if num & (1 << k) == 1 << k:
            count += A[k]
    # print(num, count)
     k range(n) range n if num & (1 << k) == 1 << k:
            count += A[k]
    # print(num, count)
     num & (1 << k) == 1 << k num & (1 << k) num 1 << k 1 k 1 << k 1 k count += A[k] count A[k] A k values.add(count) values.add values add count m = int(input()) m int(input()) int input() input Q = list(map(int, input().split())) Q list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split for q in Q:
    if q in values:
        print("yes")
    else:
        print("no") q Q if q in values:
        print("yes")
    else:
        print("no") q in values q values print("yes") print "yes" print("no") print "no" m = int(input()) int(input()) m A = list(map(int, input().split())) list(map(int, input().split())) A n = int(input()) int(input()) n Q = list(map(int, input().split())) list(map(int, input().split())) Q count = 0 0 count count += A[k] A[k] count values = set({}) set({}) values
n = int(input())
A = list(map(int, input().split()))

values = set({})
for num in range(1 << n):
    count = 0
    for k in range(n):
        if num & (1 << k) == 1 << k:
            count += A[k]
    # print(num, count)
    values.add(count)

m = int(input())
Q = list(map(int, input().split()))
for q in Q:
    if q in values:
        print("yes")
    else:
        print("no")
