import scala.io.StdIn._
object Main extends App{
  val sc = new java.util.Scanner(System.in)
  val a,b,x = sc.nextInt
    if(a<x && (x-a)<b){ 
      println("YES")
    }
  else{
    println("NO")
  }
}