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

solve = -> (i, m) do
  #STDERR.puts "=> Try #{m} i:#{i}"
  if m == 0
    t = true
  elsif i >= n
    t = false
  else
    t = solve.(i + 1, m) || solve.(i + 1, m - a[i])
  end
  #STDERR.puts "<= Try #{m} i:#{i} -> #{t}"
  t
end

for i in 0...q do
  if solve.(0, m[i])
    puts 'yes'
  else
    puts 'no'
  end
end

