import scala.collection.mutable.ListBuffer

object Main extends App {

  private val buf = new Array[Byte](1024)
  private val input = ListBuffer.empty[Array[Int]]

  def isChar(c: Int) = 32 <= c && c <= 126
  
  @inline def reads() = {
    var sb = new StringBuilder
    var insize = System.in.read(buf)
    var i = 0
    while(i < insize){
      val c = buf(i)
      if(isChar(c)) {
        sb.append(c.toChar.toString)
        if(i + 1 == insize) {
          input += sb.toString().split(' ').map(_.toInt)
          sb.clear()
        }
      } else { // break
        input += sb.toString().split(' ').map(_.toInt)
        sb.clear()
      }
      i += 1
    }
  }
  
  reads()
  
  val buff = input.toVector
  val n = buff(0)(0)
  val a = buff(1)
  val q = buff(2)(0)
  val m = buff(3)

  def solve(i: Int, m: Int): Boolean = if(m == 0) true
  else if(i >= n) false
  else solve(i+1, m) || solve(i+1, m - a(i))

  val result = m.map(p => if(solve(0, p)) "yes" else "no")

  print(result.mkString(f"%n") + f"%n")

}
