

n = gets.to_i
num = gets.split.map(&:to_i)
m = gets.to_i
qu = gets.split.map(&:to_i)
ans = Array.new(m){false}
m.times do |v|	
	n.times do |i|
		(i+1).upto n-1 do |j|
		if num[i] + num[j] == qu[v]
			ans[v] = true
			break
		end
		end
		if ans[v]
			break
		end
	end
end

ans.each do |a|
	puts "yes" if a
	puts "no" unless a
end