import qualified Data.Set as Set
import           Data.List (subsequences)
import           Control.Monad (replicateM)

main = do
  s  <- replicateM 4 getLine
  let as = map read $ words (s !! 1)
      ms = map read $ words (s !! 3)
      sm = Set.fromList $ map sum $ subsequences as
  putStr $ yesOrNo $ map ((flip Set.member) sm) ms

yesOrNo xs = unlines $ map yesOrNo' xs
  where
    yesOrNo' b
      | b == False = "no"
      | b == True  = "yes"