# -*- coding: utf-8 -*-
# 標準入力を取得
n = int(input())
A = list(map(int, input().split()))
q = int(input())
m = list(map(int, input().split()))

# メイン処理
ans_list = ["no" for i in range(q)]
for bit in range(1 << n):
    s = 0
    for i in range(n):
        if bit & (1 << i):
            s += A[i]
    L = [i for i, x in enumerate(m) if x == s]
    for l in L:
        ans_list[l] = "yes"

# 結果出力
for ans in ans_list:
    print(ans) 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 "no" for i in range(q) for i in range(q) i range(q) range q for i in range(q) "no" ans_list = ["no" for i in range(q)] ans_list ["no" for i in range(q)] for bit in range(1 << n):
    s = 0
    for i in range(n):
        if bit & (1 << i):
            s += A[i]
    L = [i for i, x in enumerate(m) if x == s]
    for l in L:
        ans_list[l] = "yes"

# 結果出力 bit range(1 << n) range 1 << n 1 n s = 0 s 0 for i in range(n):
        if bit & (1 << i):
            s += A[i]
     i range(n) range n if bit & (1 << i):
            s += A[i]
     bit & (1 << i) bit 1 << i 1 i s += A[i] s A[i] A i i for i, x in enumerate(m) if x == s for i, x in enumerate(m) if x == s i x enumerate(m) enumerate m x == s x s if x == s i L = [i for i, x in enumerate(m) if x == s] L [i for i, x in enumerate(m) if x == s] for l in L:
        ans_list[l] = "yes"

# 結果出力 l L ans_list[l] = "yes" ans_list[l] ans_list l "yes" for ans in ans_list:
    print(ans) ans ans_list print(ans) print ans A = list(map(int, input().split())) list(map(int, input().split())) A ans_list = ["no" for i in range(q)] ["no" for i in range(q)] ans_list q = int(input()) int(input()) q s = 0 0 s m = list(map(int, input().split())) list(map(int, input().split())) m s += A[i] A[i] s L = [i for i, x in enumerate(m) if x == s] [i for i, x in enumerate(m) if x == s] L n = int(input()) int(input()) n
# -*- coding: utf-8 -*-
# 標準入力を取得
n = int(input())
A = list(map(int, input().split()))
q = int(input())
m = list(map(int, input().split()))

# メイン処理
ans_list = ["no" for i in range(q)]
for bit in range(1 << n):
    s = 0
    for i in range(n):
        if bit & (1 << i):
            s += A[i]
    L = [i for i, x in enumerate(m) if x == s]
    for l in L:
        ans_list[l] = "yes"

# 結果出力
for ans in ans_list:
    print(ans)
