from itertools import combinations

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

l = set(sum(t) for i in range(n) for t in combinations(a, i + 1))

for m in map(int, input().split()):
    print('yes' if m in l else 'no') from itertools import combinations n, a, q = int(input()), list(map(int, input().split())), input() n int(input()) int input() input a list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split q input() input l = set(sum(t) for i in range(n) for t in combinations(a, i + 1)) l set(sum(t) for i in range(n) for t in combinations(a, i + 1)) set sum(t) sum t for m in map(int, input().split()):
    print('yes' if m in l else 'no') m map(int, input().split()) map int input().split() ().split () input split print('yes' if m in l else 'no') print 'yes' if m in l else 'no' m in l m l 'yes' 'no' a, q = int(input()), list(map(int, input().split())), input() list(map(int, input().split())) a n, a, q = int(input()), list(map(int, input().split())), input() int(input()) n l = set(sum(t) for i in range(n) for t in combinations(a, i + 1)) set(sum(t) for i in range(n) for t in combinations(a, i + 1)) l q = int(input()), list(map(int, input().split())), input() input() q
from itertools import combinations

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

l = set(sum(t) for i in range(n) for t in combinations(a, i + 1))

for m in map(int, input().split()):
    print('yes' if m in l else 'no')