{-# OPTIONS_GHC -Wall #-}

readInt :: String -> Int
readInt = read

isOk :: [Int] -> Int -> Bool
isOk _ 0  = True
isOk [] _ = False
isOk (a:as) m
    | a > m     = isOk as m
    | otherwise = (isOk as (m-a)) || (isOk as m)

yesno :: Bool -> String
yesno True  = "yes"
yesno False = "no"

main :: IO ()
main = do
    _  <- fmap readInt getLine
    as <- fmap (map readInt . words) getLine
    _  <- fmap readInt getLine
    ms <- fmap (map readInt . words) getLine
    let ans = map (isOk as) ms
    mapM_ (putStrLn . yesno) ans

