n=gets.to_i
aa=gets.split.map!{|i|i.to_i}
aa.slice!(n..-1)
q=gets.to_i
m=gets.split.map!{|i|i.to_i}
m.slice!(q..-1)
aa.sort!
for x in m do
  str="no"
  n.times do |i|
    (i+1).upto(n-1) do |j|
      if x==aa[i]+aa[j] then
        str="yes"
      elsif x<aa[i]+aa[j] then
        break
      end
    end
  end
  print str+"\n"
end
