object Main extends App {
	val Array(a, b, x) = scala.io.StdIn.readLine.split(" ").map(_.toInt)

	if(a > x){
		println("NO")
	}else if(a < x){
		if(a + b >= x){
			println("YES")
		}else{
			println("NO")
		}
	}else{
		println("YES")
	}
}