object Main extends App {

  def combinationExists(xs: Seq[Int], p: (Seq[Int]) => Boolean) = {

    def rec(xs: Seq[Int], acc: List[Int]): Boolean = {
      if (xs.isEmpty)
        p(acc)
      else
        rec(xs.tail, xs.head::acc) || rec(xs.tail, acc)
    }

    rec(xs, List())
  }

  val sc = new java.util.Scanner(Console.in)

  def nextInt() = sc.next().toInt

  val A  = Seq.fill(nextInt())(nextInt())
  val ms = Seq.fill(nextInt())(nextInt())
  for (m <- ms)
    println(if (combinationExists(A, _.sum == m)) "yes" else "no")
}

