import math



def main():

    X = int(eval(input()))

    ans = False

    for i in range(X+1):

        mx = 105 * i

        mn = 100 * i

        if mn <= X <= mx:

            ans = True

    if ans:

        print((1))

    else:

        print((0))



if __name__ == "__main__":

    main()
import math



def main():

    X = int(eval(input()))

    # ans = False

    c = X // 100

    mx = 105 * c

    mn = 100 * c

    if mn <= X <= mx:

        print((1))

    else:

        print((0))



if __name__ == "__main__":

    main()
import math


def main():
    X = int(eval(input()))
    ans = False
    for i in range(X + 1):
        mx = 105 * i
        mn = 100 * i
        if mn <= X <= mx:
            ans = True
    if ans:
        print((1))
    else:
        print((0))


if __name__ == "__main__":
    main()

import math


def main():
    X = int(eval(input()))
    # ans = False
    c = X // 100
    mx = 105 * c
    mn = 100 * c
    if mn <= X <= mx:
        print((1))
    else:
        print((0))


if __name__ == "__main__":
    main()

-    ans = False -    for i in range(X + 1): -        mx = 105 * i -        mn = 100 * i -        if mn <= X <= mx: -            ans = True -    if ans: +    # ans = False +    c = X // 100 +    mx = 105 * c +    mn = 100 * c +    if mn <= X <= mx: