# -*- coding: utf-8 -*-
n = int(input())
A = [int(n) for n in input().split()]
q = int(input())
M = [int(n) for n in input().split()]

numbers = [0]

for a in A:
    numbers = numbers + [n+a for n in numbers]

for m in M:
    if m in numbers:
        print("yes")
    else:
        print("no") n = int(input()) n int(input()) int input() input int(n) for n in input().split() for n in input().split() n input().split() ().split () input split for n in input().split() int(n) int n A = [int(n) for n in input().split()] A [int(n) for n in input().split()] q = int(input()) q int(input()) int input() input int(n) for n in input().split() for n in input().split() n input().split() ().split () input split for n in input().split() int(n) int n M = [int(n) for n in input().split()] M [int(n) for n in input().split()] numbers = [0] numbers [0] 0 for a in A:
    numbers = numbers + [n+a for n in numbers] a A n+a for n in numbers for n in numbers n numbers for n in numbers n+a n a numbers = numbers + [n+a for n in numbers] numbers numbers + [n+a for n in numbers] numbers [n+a for n in numbers] for m in M:
    if m in numbers:
        print("yes")
    else:
        print("no") m M if m in numbers:
        print("yes")
    else:
        print("no") m in numbers m numbers print("yes") print "yes" print("no") print "no" M = [int(n) for n in input().split()] [int(n) for n in input().split()] M q = int(input()) int(input()) q n = int(input()) int(input()) n A = [int(n) for n in input().split()] [int(n) for n in input().split()] A numbers = numbers + [n+a for n in numbers] numbers + [n+a for n in numbers] numbers numbers = [0] [0] numbers
# -*- coding: utf-8 -*-
n = int(input())
A = [int(n) for n in input().split()]
q = int(input())
M = [int(n) for n in input().split()]

numbers = [0]

for a in A:
    numbers = numbers + [n+a for n in numbers]

for m in M:
    if m in numbers:
        print("yes")
    else:
        print("no")