gets
as = gets.split.map(&:to_i)
gets
ms = gets.split.map(&:to_i)
max = as.max

def can_make?(m, numbers)
  return false if numbers.size <= 1
  (2..numbers.size).each {|n|
    return true if numbers.combination(n).any? {|a| a.inject(:+) == m}
  }
  false
end

for m in ms
  if m > max
    puts "no"
    next
  end

  if as.include?(m)
    puts "yes"
    next
  end

  pickups = as.select{|a| a < m}
  puts can_make?(m, pickups) ? "yes" : "no"
end