def solve(i,m,a)
  if m==0
    return TRUE
  end
  if i >= @n
    return FALSE
  end
  res= solve(i+1,m,a) || solve(i+1,m-a[i],a)
  return res
end
@n=gets.to_i
a=gets.split.map(&:to_i)
q=gets.to_i
m=gets.split.map(&:to_i)
m.each do |mi|
  if solve(0,mi,a)
    puts "yes"
  else
    puts "no"
  end
end