n = gets.chomp.to_i
a = gets.chomp.split(" ").map(&:to_i)
q = gets.chomp.to_i
m = gets.chomp.split(" ").map(&:to_i)

m.each { |mi|
	flg = 0
	for num in 1..a.length do
		a.combination(num){ |ary|
			if ary.reduce(:+) == mi
				flg = 1
				break
			end
		}
		if flg == 1
			break
		end
	end
	
	if flg == 1
		puts "yes"
	else
		puts "no"
	end
}