import itertools


def rev(x):
    return sumA - x


if __name__ == "__main__":
    n = int(input())
    A = list(map(int, input().split()))
    q = int(input())
    M = list(map(int, input().split()))
    sumA = sum(A)
    all_sum = set()
    for i in range((n+1)//2):
        com = set(itertools.combinations(A, i+1))
        com_sum = set(map(sum, com))
        com_sum_rev = set(map(rev, com_sum))
        all_sum = all_sum.union(com_sum)
        all_sum = all_sum.union(com_sum_rev)
    for m in M:
        if m in all_sum:
            print("yes")
        else:
            print("no") import itertools itertools def rev(x):
    return sumA - x rev return sumA - x sumA - x sumA x x x if __name__ == "__main__":
    n = int(input())
    A = list(map(int, input().split()))
    q = int(input())
    M = list(map(int, input().split()))
    sumA = sum(A)
    all_sum = set()
    for i in range((n+1)//2):
        com = set(itertools.combinations(A, i+1))
        com_sum = set(map(sum, com))
        com_sum_rev = set(map(rev, com_sum))
        all_sum = all_sum.union(com_sum)
        all_sum = all_sum.union(com_sum_rev)
    for m in M:
        if m in all_sum:
            print("yes")
        else:
            print("no") __name__ == "__main__" __name__ "__main__" 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 sumA = sum(A) sumA sum(A) sum A all_sum = set() all_sum set() set for i in range((n+1)//2):
        com = set(itertools.combinations(A, i+1))
        com_sum = set(map(sum, com))
        com_sum_rev = set(map(rev, com_sum))
        all_sum = all_sum.union(com_sum)
        all_sum = all_sum.union(com_sum_rev)
     i range((n+1)//2) range (n+1)//2 n+1 n 1 2 com = set(itertools.combinations(A, i+1)) com set(itertools.combinations(A, i+1)) set itertools.combinations(A, i+1) itertools.combinations itertools combinations A i+1 i 1 com_sum = set(map(sum, com)) com_sum set(map(sum, com)) set map(sum, com) map sum com com_sum_rev = set(map(rev, com_sum)) com_sum_rev set(map(rev, com_sum)) set map(rev, com_sum) map rev com_sum all_sum = all_sum.union(com_sum) all_sum all_sum.union(com_sum) all_sum.union all_sum union com_sum all_sum = all_sum.union(com_sum_rev) all_sum all_sum.union(com_sum_rev) all_sum.union all_sum union com_sum_rev for m in M:
        if m in all_sum:
            print("yes")
        else:
            print("no") m M if m in all_sum:
            print("yes")
        else:
            print("no") m in all_sum m all_sum print("yes") print "yes" print("no") print "no" A = list(map(int, input().split())) list(map(int, input().split())) A all_sum = all_sum.union(com_sum_rev) all_sum.union(com_sum_rev) all_sum M = list(map(int, input().split())) list(map(int, input().split())) M def rev(x):
    return sumA - x def rev(x):
    return sumA - x rev q = int(input()) int(input()) q all_sum = set() set() all_sum com_sum_rev = set(map(rev, com_sum)) set(map(rev, com_sum)) com_sum_rev n = int(input()) int(input()) n sumA = sum(A) sum(A) sumA com = set(itertools.combinations(A, i+1)) set(itertools.combinations(A, i+1)) com com_sum = set(map(sum, com)) set(map(sum, com)) com_sum all_sum = all_sum.union(com_sum) all_sum.union(com_sum) all_sum
import itertools


def rev(x):
    return sumA - x


if __name__ == "__main__":
    n = int(input())
    A = list(map(int, input().split()))
    q = int(input())
    M = list(map(int, input().split()))
    sumA = sum(A)
    all_sum = set()
    for i in range((n+1)//2):
        com = set(itertools.combinations(A, i+1))
        com_sum = set(map(sum, com))
        com_sum_rev = set(map(rev, com_sum))
        all_sum = all_sum.union(com_sum)
        all_sum = all_sum.union(com_sum_rev)
    for m in M:
        if m in all_sum:
            print("yes")
        else:
            print("no")