n = gets.to_i
as = gets.split.map(&:to_i).sort!
q = gets.to_i
ms = gets.split.map(&:to_i)

sums = []
1.upto(n) do | i | # iはasから取得する数
  cmbs = as.combination(i).to_a
  cmbs.map{ | ary | sum = 0; ary.each{ | a | sum += a }; sums << sum }
end

ms.each do | m |
  if sums.include? m
    puts 'yes'
  else
    puts 'no'
  end
end
