n = STDIN.gets.to_i
sequence = STDIN.gets.split[0...n].map(&:to_i)
m = STDIN.gets.to_i
questions = STDIN.gets.split[0...m].map(&:to_i)

combined = []
1.upto(n) do |i|
	sequence.combination(i).each { |e| combined << e.inject(:+) }
end
questions.each { |q| puts combined.include?(q) ? "yes" : "no" }