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

def test(i, s, target):
    if s == target:
        return 1
    if s > target or i == n:
        return 0
    if s + sum(a[i:]) < target:
        return 0

    return test(i+1, s, target) or test(i+1, s+a[i], target)

for target in m:
    ans = 'yes' if test(0, 0, target) else 'no'
    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 def test(i, s, target):
    if s == target:
        return 1
    if s > target or i == n:
        return 0
    if s + sum(a[i:]) < target:
        return 0

    return test(i+1, s, target) or test(i+1, s+a[i], target) test if s == target:
        return 1
     s == target s target return 1 1 if s > target or i == n:
        return 0
     s > target or i == n s > target s target i == n i n return 0 0 if s + sum(a[i:]) < target:
        return 0

     s + sum(a[i:]) < target s + sum(a[i:]) s sum(a[i:]) sum a[i:] a i: i target return 0 0 return test(i+1, s, target) or test(i+1, s+a[i], target) test(i+1, s, target) or test(i+1, s+a[i], target) test(i+1, s, target) test i+1 i 1 s target test(i+1, s+a[i], target) test i+1 i 1 s+a[i] s a[i] a i target i i s s target target for target in m:
    ans = 'yes' if test(0, 0, target) else 'no'
    print(ans) target m ans = 'yes' if test(0, 0, target) else 'no' ans 'yes' if test(0, 0, target) else 'no' test(0, 0, target) test 0 0 target 'yes' 'no' print(ans) print ans n = int(input()) int(input()) n ans = 'yes' if test(0, 0, target) else 'no' 'yes' if test(0, 0, target) else 'no' ans def test(i, s, target):
    if s == target:
        return 1
    if s > target or i == n:
        return 0
    if s + sum(a[i:]) < target:
        return 0

    return test(i+1, s, target) or test(i+1, s+a[i], target) def test(i, s, target):
    if s == target:
        return 1
    if s > target or i == n:
        return 0
    if s + sum(a[i:]) < target:
        return 0

    return test(i+1, s, target) or test(i+1, s+a[i], target) test m = list(map(int, input().split())) list(map(int, input().split())) m a = list(map(int, input().split())) list(map(int, input().split())) a q = int(input()) int(input()) q
n = int(input())
a = list(map(int, input().split()))
q = int(input())
m = list(map(int, input().split()))

def test(i, s, target):
    if s == target:
        return 1
    if s > target or i == n:
        return 0
    if s + sum(a[i:]) < target:
        return 0

    return test(i+1, s, target) or test(i+1, s+a[i], target)

for target in m:
    ans = 'yes' if test(0, 0, target) else 'no'
    print(ans)
