# coding: utf-8
# 全探索


def solve(i, m):
    global A, n

    if (m == 0):
        return True
    if (i >= n):
        return False

    res = solve(i + 1, m) or solve(i + 1, m - A[i])

    return res


if __name__ == "__main__":
    n = int(input())
    A = [int(i) for i in input().split()]
    q = int(input())
    m = [int(i) for i in input().split()]
    total = sum(A)
    for m_i in m:
        if m_i > total:
            print('no')
        else:
            print('yes' if solve(0, m_i) else 'no')
 def solve(i, m):
    global A, n

    if (m == 0):
        return True
    if (i >= n):
        return False

    res = solve(i + 1, m) or solve(i + 1, m - A[i])

    return res solve global A, n if (m == 0):
        return True
     m == 0 m 0 return True True if (i >= n):
        return False

     i >= n i n return False False res = solve(i + 1, m) or solve(i + 1, m - A[i]) res solve(i + 1, m) or solve(i + 1, m - A[i]) solve(i + 1, m) solve i + 1 i 1 m solve(i + 1, m - A[i]) solve i + 1 i 1 m - A[i] m A[i] A i return res res i i m m if __name__ == "__main__":
    n = int(input())
    A = [int(i) for i in input().split()]
    q = int(input())
    m = [int(i) for i in input().split()]
    total = sum(A)
    for m_i in m:
        if m_i > total:
            print('no')
        else:
            print('yes' if solve(0, m_i) else 'no') __name__ == "__main__" __name__ "__main__" n = int(input()) n int(input()) int input() input int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i A = [int(i) for i in input().split()] A [int(i) for i in input().split()] q = int(input()) q int(input()) int input() input int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i m = [int(i) for i in input().split()] m [int(i) for i in input().split()] total = sum(A) total sum(A) sum A for m_i in m:
        if m_i > total:
            print('no')
        else:
            print('yes' if solve(0, m_i) else 'no') m_i m if m_i > total:
            print('no')
        else:
            print('yes' if solve(0, m_i) else 'no') m_i > total m_i total print('no') print 'no' print('yes' if solve(0, m_i) else 'no') print 'yes' if solve(0, m_i) else 'no' solve(0, m_i) solve 0 m_i 'yes' 'no' q = int(input()) int(input()) q A = [int(i) for i in input().split()] [int(i) for i in input().split()] A n = int(input()) int(input()) n def solve(i, m):
    global A, n

    if (m == 0):
        return True
    if (i >= n):
        return False

    res = solve(i + 1, m) or solve(i + 1, m - A[i])

    return res def solve(i, m):
    global A, n

    if (m == 0):
        return True
    if (i >= n):
        return False

    res = solve(i + 1, m) or solve(i + 1, m - A[i])

    return res solve m = [int(i) for i in input().split()] [int(i) for i in input().split()] m total = sum(A) sum(A) total
# coding: utf-8
# 全探索


def solve(i, m):
    global A, n

    if (m == 0):
        return True
    if (i >= n):
        return False

    res = solve(i + 1, m) or solve(i + 1, m - A[i])

    return res


if __name__ == "__main__":
    n = int(input())
    A = [int(i) for i in input().split()]
    q = int(input())
    m = [int(i) for i in input().split()]
    total = sum(A)
    for m_i in m:
        if m_i > total:
            print('no')
        else:
            print('yes' if solve(0, m_i) else 'no')

