import scala.io.StdIn.{readInt, readLine}

object Main extends App {
  val n = readInt
  val A = readLine.split(" ").map(_.toInt)
  val q = readInt
  val M = readLine.split(" ").map(_.toInt)

  for (i <- 0 until q) {
    if (solve(0, M(i))) println("yes") else println("no")
  }

  def solve(i: Int, m: Int): Boolean = {
    if (m == 0) return true
    if (i >= n) return false
    val res = solve(i + 1, m) || solve(i + 1, m - A(i))
    res
  }
}
