def check(as, m)
  if as.inject(&:+) >= m
    (1..as.size).any?{|comb_num|
      # All combination of `as` in `com_num`
      as.combination(comb_num).any?{|nums|
        # Summation of nums equals to m
        nums.inject(&:+) == m
      }
    }
  else
    false
  end
end

_ = gets
as = gets.split(' ').map(&:to_i)
_ = gets
ms = gets.split(' ').map(&:to_i)

ms.each{|m|
  if check(as, m)
    puts("yes")
  else
    puts("no")
  end
}

