def available?(t, ary)
  recursion(0, ary, t)
end

def recursion(sum, data, target)
  return true if target == sum
  return false if target < sum
  return false if data.size == 0

  d = data.slice(1..data.size)
  return true if recursion(sum, d, target)
  return true if recursion(sum + 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
}