def solve(i, m)
	return true if m == 0
	return false if i >= $n
	return solve(i + 1, m) || solve(i + 1, m - $a[i])
end

$n = gets.to_i
$a = gets.split.map &:to_i
q = gets.to_i
m = gets.split.map &:to_i

m.each do |val|
	if solve(0, val)
		puts "yes"
	else 
		puts "no"
	end
end