import kotlin.math.ceil fun main() { val wants = readln().toDouble() - 100 println(ceil(wants.div(500)).toInt()) }