fun main(args: Array<String>) {
    val (a, b, x) = readIntList()
    printYesOrNo(
            x >= a && x <= a + b
    )
}

fun printYesOrNo(flag: Boolean) {
    println(if (flag) "YES" else "NO")
}

fun readIntList(): List<Int> = readLine()!!.split(' ').map { it.toInt() }

fun readInt(): Int = readLine()!!.toInt()

fun err(print: Any) {
    System.err.println(print)
}