fun main(arr: Array<String>) {
    val x = readLine()!!.toInt()
    println(if(isValid(x)) 1 else 0)
}


fun isValid(num:Int):Boolean {
    val tmp = num % 100
    val c100 = num/100

    var div = tmp / 5
    if(tmp%5 != 0) {
        div++
    }
    return c100 >= div
}