n = gets.to_i
a = gets.split.map{ |i| i.to_i }
q = gets.to_i
m = gets.split.map{ |i| i.to_i }


class ExhaustiveSearch
  attr_accessor :target, :result

  def initialize(source)
    @source = source
    @target = nil
    @result = false
  end

  def search(sum, i)
    (i..@source.length-1).each do |j|
      if sum + @source[j] == @target
        @result = true
      elsif sum + @source[j] < @target
        search(sum + @source[j], j+1)
      else
      end
    end
  end
end

es = ExhaustiveSearch.new(a)

m.each do |mi|
  es.target = mi
  es.result = false
  es.search(0, 0)
  if es.result
    puts "yes"
  else
    puts "no"
  end
end