x = gets.to_i
t = x % 100
while t >= 5
    x -= 105
    t -= 5
end
while t >= 4
    x -= 104
    t -= 4
end
while t >= 3
    x -= 103
    t -= 3
end
while t >= 2
    x -= 102
    t -= 2
end
while t >= 1
    x -= 101
    t -= 1
end
if x >= 0 && t == 0
    puts 1
else
    puts 0
end
