n = int(input())
A = [int(x) for x in input().split()]
q = int(input())
M = [int(x) for x in input().split()]

ans = ["no"]*2000

for i in range(1<<n):
    a = 0
    for j in range(n):
        if (i>>j)&1 == 1:
            a += A[j]
    ans[a] = "yes"

for j in M:
    print(ans[j]) n = int(input()) n int(input()) int input() input int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x A = [int(x) for x in input().split()] A [int(x) for x in input().split()] q = int(input()) q int(input()) int input() input int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x M = [int(x) for x in input().split()] M [int(x) for x in input().split()] ans = ["no"]*2000 ans ["no"]*2000 ["no"] "no" 2000 for i in range(1<<n):
    a = 0
    for j in range(n):
        if (i>>j)&1 == 1:
            a += A[j]
    ans[a] = "yes" i range(1<<n) range 1<<n 1 n a = 0 a 0 for j in range(n):
        if (i>>j)&1 == 1:
            a += A[j]
     j range(n) range n if (i>>j)&1 == 1:
            a += A[j]
     (i>>j)&1 == 1 (i>>j)&1 i>>j i j 1 1 a += A[j] a A[j] A j ans[a] = "yes" ans[a] ans a "yes" for j in M:
    print(ans[j]) j M print(ans[j]) print ans[j] ans j a = 0 0 a n = int(input()) int(input()) n a += A[j] A[j] a M = [int(x) for x in input().split()] [int(x) for x in input().split()] M ans = ["no"]*2000 ["no"]*2000 ans A = [int(x) for x in input().split()] [int(x) for x in input().split()] A q = int(input()) int(input()) q
n = int(input())
A = [int(x) for x in input().split()]
q = int(input())
M = [int(x) for x in input().split()]

ans = ["no"]*2000

for i in range(1<<n):
    a = 0
    for j in range(n):
        if (i>>j)&1 == 1:
            a += A[j]
    ans[a] = "yes"

for j in M:
    print(ans[j])
