/**
 * 線形探索
 */
fun main(args: Array<String>) {

    Main.init()

    Main.execute()
}

class Main {

    companion object {

        private lateinit var inputs: List<Int>

        private lateinit var searchLists: List<Int>

        fun init() {

            readLine()

            inputs = readLine()!!.split(" ").map { it.toInt() }

            readLine()

            searchLists = readLine()!!.split(" ").map { it.toInt() }

        }

        fun execute() {
            searchLists.forEach {
                println(if (isJust(0, 0, it)) "yes" else "no")
            }
        }

        fun isJust(index: Int, length: Int, goalValue: Int): Boolean {

            // 最後まで見た場合or長くなり過ぎた場合はfalse
            if (index == inputs.size || length > goalValue) {
                return false
            }

            if (inputs[index] + length == goalValue) {
                return true
            }

            return isJust(index + 1, length, goalValue) || isJust(index + 1, length + inputs[index], goalValue)

        }
    }
}


