n = int(raw_input())
A = map(int, raw_input().split())
q = int(raw_input())
m = map(int, raw_input().split())
nums = []

def func(i, p):
  if i != n:
    func(i+1, p)
    p += A[i]
    func(i+1, p)
  elif i == n:
    nums.append(p)

func(0, 0)

for i in range(q):
  if m[i] in nums:
    print("yes")
  else:
    print("no") n = int(raw_input()) n int(raw_input()) int raw_input() raw_input A = map(int, raw_input().split()) A map(int, raw_input().split()) map int raw_input().split() ().split () raw_input split q = int(raw_input()) q int(raw_input()) int raw_input() raw_input m = map(int, raw_input().split()) m map(int, raw_input().split()) map int raw_input().split() ().split () raw_input split nums = [] nums [] def func(i, p):
  if i != n:
    func(i+1, p)
    p += A[i]
    func(i+1, p)
  elif i == n:
    nums.append(p) func if i != n:
    func(i+1, p)
    p += A[i]
    func(i+1, p)
  elif i == n:
    nums.append(p) i != n i n func(i+1, p) func i+1 i 1 p p += A[i] p A[i] A i func(i+1, p) func i+1 i 1 p elif i == n:
    nums.append(p) i == n i n nums.append(p) nums.append nums append p i i p p func(0, 0) func 0 0 for i in range(q):
  if m[i] in nums:
    print("yes")
  else:
    print("no") i range(q) range q if m[i] in nums:
    print("yes")
  else:
    print("no") m[i] in nums m[i] m i nums print("yes") print "yes" print("no") print "no" q = int(raw_input()) int(raw_input()) q nums = [] [] nums A = map(int, raw_input().split()) map(int, raw_input().split()) A def func(i, p):
  if i != n:
    func(i+1, p)
    p += A[i]
    func(i+1, p)
  elif i == n:
    nums.append(p) def func(i, p):
  if i != n:
    func(i+1, p)
    p += A[i]
    func(i+1, p)
  elif i == n:
    nums.append(p) func m = map(int, raw_input().split()) map(int, raw_input().split()) m n = int(raw_input()) int(raw_input()) n
n = int(raw_input())
A = map(int, raw_input().split())
q = int(raw_input())
m = map(int, raw_input().split())
nums = []

def func(i, p):
  if i != n:
    func(i+1, p)
    p += A[i]
    func(i+1, p)
  elif i == n:
    nums.append(p)

func(0, 0)

for i in range(q):
  if m[i] in nums:
    print("yes")
  else:
    print("no")