def available?(t, ary)
  recursion([], ary, t)
end

def recursion(queue, data, target)
  return true if target == queue.inject(:+)
  return false if target < queue.inject(0, :+)
  return false if data.size == 0

  d = data.slice(1..data.size)
  return true if recursion(queue, d, target)
  return true if recursion(queue + [data[0]], d, target)
  return false
end

# main
n = gets.to_i
ary = gets.split(' ').map(&:to_i)
q = gets.to_i
targets = gets.split(' ').map(&:to_i)

targets.each{ |t|
  if available?(t, ary)
    puts 'yes'
  else
    puts 'no'
  end
}