def solve(i, m, n)
  if m == 0
    return true
  end

  if i >= n
    return false
  end

  res = solve(i+1, m, n) || solve(i+1, m - A[i], n)
  return res
end


a = gets.chomp.to_i
A = gets.chomp.split(" ").map(&:to_i)
b = gets.chomp.to_i
B = gets.chomp.split(" ").map(&:to_i)

B.each do |bb|
  if solve(0, bb, a)
    puts "yes"
  else
    puts "no"
  end
end
