require 'set'

n = gets.to_i
A = gets.split.map(&:to_i)
q = gets.to_i
M = gets.split.map(&:to_i)

C = Set.new

1.upto(A.size) do |n|
  A.combination(n).each do |arr|
    C << arr.inject(0, :+)
  end
end

M.each do |m|
  puts C.include?(m) ? 'yes' : 'no'
end