import java.util.*

fun main(args: Array<String>) {
    val scanner = Scanner(System.`in`)

    val A = scanner.nextInt()
    val B = scanner.nextInt()
    val X = scanner.nextInt()

    if (A <= X && X < A+B) println("YES")
    else println("NO")
}