fun main(args: Array<String>) {
    val X = nextInt()
    if (X < 100) {
        println(0)
        return
    }
    val n = X / 100
    val r = (X - (n * 100)).toDouble() / n.toDouble()
    println(if (r > 5.0) 0 else 1)
}
fun next() = readLine()!!
fun nextInt(delta: Int = 0) = Integer.parseInt(next()) + delta