package yukicoder import kotlin.math.absoluteValue fun main() { val x = readLine()!!.toInt() val y = readLine()!!.toInt() val l = readLine()!!.toInt() var count = 0 if (y < 0) { count++ } if (x != 0) { count++ } count += y.absoluteValue / l if (y.absoluteValue % l > 0) { count++ } count += x.absoluteValue / l if (x.absoluteValue % l > 0) { count++ } println(count) }