def solve( i, t )
	$isExist[ t ] = true
	if i < $n
		solve( i+1, t-$arrA[i] )
		solve( i+1, t )
	end
end


$isExist = Array.new( 2000, false );

$n = gets.to_i
$arrA = gets.split( " " ).map { |val| val.to_i }
s = 0
for val in $arrA
	s += val
end
q = gets.to_i
arrM = gets.split( " " ).map { |val| val.to_i }

solve( 0, s )
for i in ( 0 ... q )
	if $isExist[ arrM[i] ]
		puts( "yes" )
	else
		puts( "no" )
	end
end