import Control.Applicative

getInt :: IO Int
getInt = (\a -> read a :: Int) <$> getLine
getIntArray :: IO [Integer]
getIntArray = ((map (\a -> read a :: Integer)) . words) <$> getLine

main = do
    [a, b, x] <- getIntArray
    putStrLn $ if ((x < a) || (a + b < x)) then "NO" else "YES"
