# exhaustive.rb
#

s=Array.new(20)
table=Array.new(2000,0)
table[0]=1
table2=Array.new(2000,0)

n=STDIN.gets.split[0].to_i
str=STDIN.gets.split
sum=0
0.upto(n-1) {|i|
  table2=Marshal.load(Marshal.dump(table))
  num = str[i].to_i
  0.upto(sum){|j|
    break if j+num > 2000 
    if table[j]==1
      table2[j+num]=1 
#     printf("%d %d %d\n",j,num,j+num)
    end
  } 
  sum += num
  table=Marshal.load(Marshal.dump(table2))
}

q  =STDIN.gets.split[0].to_i
str=STDIN.gets.split

0.upto(q-1){|i|
  m=str[i].to_i
  puts (table[m]==1)?"yes":"no"
}
  