can = [0]
gets
a = gets.split.map &:to_i
gets
m = gets.split.map &:to_i
a.each_with_index {|e,i|
  i == 0 ? can << e : can.concat(can.map {|ele| ele + e})
  can.uniq!
}
m.each{|e|
  puts can.include?(e) ? 'yes' : 'no'
}