def solve(p, t)
  return true if t == 0
  return false if p == $n || t < 0
  [solve(p+1, t), solve(p+1, t-$a[p])].any?
end

$n = gets.to_i;
$a = gets.split.map(&:to_i)
gets;gets.split.map(&:to_i).each do |m|
  puts solve(0, m) ? 'yes' : 'no'
end