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

object Main {

  def main(args:Array[String]) = {
    val n = readInt
    val s = readLine.split(" ").map(_.toInt).toList

    var list:List[Int] = s
    for(i<-2 to n) {
      list ++= s.combinations(i).map(_.sum)
    }

    readInt
    val t = readLine.split(" ").map(_.toInt)
    t.foreach{ i=>
      if(list.contains(i)) println("yes")
      else println("no")
    }
  }
}