def solve2(arr)
  ans = { }
  ans[[0, 0]] = true
  limit = arr.inject(0) { |s, e| s + e}
  arr.each_with_index do |elem, ind|
    (0..limit).each do |sum|
      if ans[[ind, sum]] or ans[[ind, sum - elem]]
        ans[[ind + 1, sum]] = true
      end
    end
  end
  ans  
end

def main2
  n = gets.chomp.to_i
  arr = gets.chomp.split(/\s/).collect { |x| x.to_i}
  q = gets.chomp.to_i
  questions = gets.chomp.split(/\s/).collect { |x| x.to_i}
  ans = solve2(arr)
  questions.each do |question|
    if ans[[arr.size, question]]
      puts "yes"
    else
      puts "no"
    end
  end  
end

main2