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

object Main extends App {

  val n  = readInt()
  val xs = readLine().split(" ").map { _.toInt }
  readLine()
  val ys = readLine().split(" ").map { _.toInt }

  val zs = mutable.Set.empty[Int]
  for {
    i  <- 1 to n
    cs <- xs.combinations(i).map { _.sum }
  } {
    zs += cs
  }

  for {
    y  <- ys
    ans = if (zs.contains(y)) "yes" else "no"
  } {
    println(ans)
  }
}

