solve :: Int -> Int -> Int -> Bool
solve a b x = (knownCats <= expectCats) && (expectCats <= catsPlusDogs)
  where catsPlusDogs = a + b
        knownCats = a
        expectCats = x

main :: IO ()
main = do
  [a, b, x] <- map read . words <$> getLine
  putStrLn $ if solve a b x then "YES" else "NO"