def solve(arr, n, sum, currsum)
  if n == arr.size
    currsum == sum
  else
    if solve(arr, n + 1, sum, currsum + arr[n])
      true
    elsif solve(arr, n + 1, sum, currsum)
      true
    else
      false
    end
  end
end

def main
  n = gets.chomp.to_i
  arr = gets.chomp.split(/\s/).collect { |x| x.to_i}
  q = gets.chomp.to_i
  questions = gets.chomp.split(/\s/).collect { |x| x.to_i}
  questions.each do |question|
    if solve(arr, 0, question, 0)
      puts "yes"
    else
      puts "no"
    end
  end
end

main