MODE = "stdio"
#require 'matrix'
#include Math
line = Array.new

if(defined? MODE)
  line = STDIN.read.split("\n")
else
  tmp = '5
  1 5 7 10 21
  4
  2 4 17 8'.split("\n")
  tmp.each{|s|
    line << s.strip
  }
end

n = line[0].to_i
a = line[1].split(" ").map(&:to_i)
q = line[2].to_i
m = line[3].split(" ").map(&:to_i)
 
def solve(i, m, a)
  return true if m == 0
  return false if i >= a.length
  return solve(i+1, m, a) || solve(i+1, m-a[i], a)
end
 
m.each do |mi|
  if solve(0, mi, a)
    puts "yes"
  else
    puts "no"
  end
end