#!/usr/bin/ruby
# -*- coding: utf-8 -*-
=begin
ALDS1_5-A2
Recursion / Divide and Conquer - Exhaustive Search
????????¶??? : 5 sec, ?????¢?????¶??? : 65536 KB
=end

class Main
  def sum(f)
    f.inject(0){|acc,x| acc + x}
  end


  def issum(p, t, f)
    #puts "p=#{p} t=#{t}"
    if t==0 then
      return true
    elsif p==f.length then
      return false
    else

      return issum(p+1,t-f[p], f) || issum(p+1, t, f)
      #return issum(p+1,t-f[p], f) or issum(p+1, t, f)
    end
  end

  def initialize
    #fh=open("/home/muz/Downloads/ALDS1_5_A_in1.txt")
    #fh=open("/home/muz/Downloads/ALDS1_5_A_in10.txt")
    fh=STDIN
    n=fh.gets.chomp.to_i
    f=fh.gets.chomp.split.map{|x| x.to_i}
    q=fh.gets.chomp.to_i
    g=fh.gets.chomp.split.map{|x| x.to_i}
    fh.close
    g.each{|y|
      ans=issum(0, y, f)
      puts  ans ? "yes" : "no"
    }
  end

end

if $0==__FILE__ then
  Main.new()
end