#coding:utf-8
#1_5_A
from itertools import combinations

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

numbers = []
for i in range(1, n+1):
    for com in combinations(A, i):
        numbers.append(sum(com))

for m in ms:
    if m in numbers:
        print("yes")
    else:
        print("no") from itertools import combinations 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 ms = list(map(int, input().split())) ms list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split numbers = [] numbers [] for i in range(1, n+1):
    for com in combinations(A, i):
        numbers.append(sum(com)) i range(1, n+1) range 1 n+1 n 1 for com in combinations(A, i):
        numbers.append(sum(com)) com combinations(A, i) combinations A i numbers.append(sum(com)) numbers.append numbers append sum(com) sum com for m in ms:
    if m in numbers:
        print("yes")
    else:
        print("no") m ms if m in numbers:
        print("yes")
    else:
        print("no") m in numbers m numbers 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 ms = list(map(int, input().split())) list(map(int, input().split())) ms numbers = [] [] numbers q = int(input()) int(input()) q
#coding:utf-8
#1_5_A
from itertools import combinations

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

numbers = []
for i in range(1, n+1):
    for com in combinations(A, i):
        numbers.append(sum(com))

for m in ms:
    if m in numbers:
        print("yes")
    else:
        print("no")