n = gets.to_i
a = gets.split.map { |i| i.to_i }
q = gets.to_i
m = gets.split.map { |i| i.to_i }

def solve(i, m, a)
  return true if m == 0
  return false if i >= a.length
  return solve(i+1, m, a) || solve(i+1, m-a[i], a)
end

m.each do |mi|
  if solve(0, mi, a)
    puts "yes"
  else
    puts "no"
  end
end