import qualified Data.ByteString.Char8 as B
import           Data.Maybe            (fromJust)

readInts :: B.ByteString -> [Int]
readInts = map (fst . fromJust . B.readInt) . B.words

getInts :: IO [Int]
getInts = readInts <$> B.getLine

main :: IO ()
main = do
  [h, n] <- getInts
  as <- getInts
  putStrLn $ if solve h n as then "Yes" else "No"

solve :: Int -> Int -> [Int] -> Bool
solve h _ as = h <= sum as
