n = gets.to_i
a = gets.split.map(&:to_i)
gets; m = gets.split.map(&:to_i)

list = []
1.upto(n) do |i|
  list += a.combination(i).map {|e| e.inject(:+)}
end
m.each do |e|
  puts list.include?(e) ? 'yes' : 'no'
end