n = gets.chomp.to_i
a = gets.chomp.split(" ").map(&:to_i)
q = gets.chomp.to_i
m = gets.chomp.split(" ").map(&:to_i)

exhaustiveSearch = ->(i, m){
  if m == 0 then
    return true
  end
  if i >= n
    return false
  end
  res = exhaustiveSearch.call(i + 1, m) || exhaustiveSearch.call(i + 1, m - a[i])
  return res
}
  
m.each do |mm|
  if exhaustiveSearch.call(0, mm) then
    puts "yes"
  else
    puts "no"
  end
end