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

def solve(i, m, n, a, dp, num = 0)

  if dp[i][num] != nil
    return dp[i][num]
  end

  if m == 0
    dp[i][num] = true

  elsif i >= n
    dp[i][num] = false

  elsif solve(i+1, m, n, a, dp, i+1) || solve(i+1, m - a[i], n, a, dp, i+2) 
    dp[i][num] = true

  end
  
  return dp[i][num]
end

m.each_with_index{|value, m_i| 
  dp = Array.new(n+1){Array.new(){nil}}
  puts solve(0, value, n, a, dp) ? "yes" : "no"
}
