readInt    = read :: String -> Int
getInt     = readInt <$> getLine
getIntList = map readInt . words <$> getLine
main = do
  [a, b, x] <- getIntList
  putStrLn $ if a <= x && x - a <= b then "YES" else "NO"