object Main extends App {
    def solve(m: Int, b: Array[Int]): Boolean = {
        if (m == 0) true
        else if (b.isEmpty || m < b.head || m < 0) false
        else solve(m - b.head, b.tail) || solve(m, b.tail)
    }
    val in = io.Source.stdin.getLines.map(_.split(" ").map(_.toInt)).toSeq
    in(3).foreach(m => println(if (solve(m, in(1).sorted)) "yes" else "no"))
}