open System

[<EntryPoint>]
let main argv =
    let X = stdin.ReadLine() |> int

    let X1 = X / 100
    if (X1 = 0) then
        printfn "0"
    else if (X1 >= 20) then
        printfn "1"
    else if (X1 * 100 <= X && X <= X1 * 105) then
        printfn "1"
    else
        printfn "0"

    0