isExist = Array.new( 2000, false );
n = gets.to_i
arrA = gets.split( " " ).map { |val| val.to_i }
s = 0
for val in arrA
	( 2000 - val ).downto(1) { |j|
		if isExist[ j ]
			isExist[ j+val ] = true
		end
	}
	isExist[ val ] = true
end
q = gets.to_i
arrM = gets.split( " " ).map { |val| val.to_i }
for i in ( 0 ... q )
	if isExist[ arrM[i] ]
		puts( "yes" )
	else
		puts( "no" )
	end
end