import java.math.BigInteger

fun main(args: Array<String>) {
    val (W, A, B) = readLine()!!.split(" ").map { it.toInt() }
    val a = Math.min(A, B)
    val b = Math.max(A, B)
    println(Math.max(0, b - (a + W)))
}