def saiki(x,s)
  if(@ind[s] != nil)
    @ans[@ind[s]] = 1
  end
  return if(x >= @n)
  saiki(x+1,s+@a[x])
  saiki(x+1,s)
end
@ind = {}
@n = gets.chomp.to_i
@a = gets.chomp.split(" ").map(&:to_i)
q = gets.chomp.to_i
m = gets.chomp.split(" ").map(&:to_i)
@ans = Array.new(q,0)
m.size.times do |d|
  @ind[m[d]] = d
end
saiki(0,0)
@ans.each do |d| 
  if(d == 0)
    puts "no"
  else
    puts "yes"
  end
end