solve_all = -> (a, a_size, p, t) {
  return true if t == 0
  return false if t < 0
  return false if p == a_size
  return true if solve_all.(a, a_size, p+1, t-a[p]) || solve_all.(a, a_size ,p+1, t)
  false
}

gets; a = gets.split.map(&:to_i)
gets; m = gets.split.map(&:to_i)
solve = solve_all.curry.(a, a.size)
m.each do |e|
  puts solve.(0, e) ? 'yes' : 'no'
end