def solve(array, p, t)
  is_solved = false
  return true if (t == 0)
  return false if (t < 0)
  return false if (p >= array.size)
  is_solved ||= solve(array, p+1, t-array[p])
  is_solved ||= solve(array, p+1, t)
end

n1 = gets.chomp.to_i
array1 = gets.chomp.split.map(&:to_i)
n2 = gets.chomp.to_i
array2 = gets.chomp.split.map(&:to_i)

array2.each do |item|
  if solve(array1, 0, item) then
    puts "yes"
  else
    puts "no"
  end
end