fun main(args: Array<String>) = p10()

fun p10() {
    val n = readLine()!!.toInt()
    val aList = readLine()!!.split(' ').map { it.toInt() }.toIntArray()
    readLine()
    val queries = readLine()!!.split(' ').map { it.toInt() }

    val sumSet = mutableSetOf<Int>()

    for (i in 0L until (1L shl n)) {
        sumSet.add(aList.filterIndexed { index, _ -> (i shr index) % 2 == 0L }.sum())
    }

    val answer = StringBuilder()
    
    for (query in queries) {
        answer.appendln(if (query in sumSet) "yes" else "no")
    }

    print(answer)
}

