def solve():

    X = int(eval(input()))

    

    if X < 100:

        return 0

    

    upper1 = X // 100

    for p1 in range(0, 100 * upper1 + 1, 100):

        rest1 = X - p1

        if rest1 == 0:

            return 1

        upper2 = rest1 // 101

        for p2 in range(0, 101 * upper2 + 1, 101):

            rest2 = rest1 - p2

            if rest2 == 0:

                return 1

            upper3 = rest2 // 102

            for p3 in range(0, 102 * upper3 + 1, 102):

                rest3 = rest2 - p3

                if rest3 == 0:

                    return 1

                upper4 = rest3 // 103

                for p4 in range(0, 103 * upper4 + 1, 103):

                    rest4 = rest3 - p4

                    if rest4 == 0:

                        return 1

                    upper5 = rest4 // 104

                    for p5 in range(0, 104 * upper5 + 1, 104):

                        rest5 = rest4 - p5

                        if rest5 == 0:

                            return 1

                        upper6 = rest5 // 105

                        for p6 in range(0, 105 * upper6 + 1, 105):

                            rest6 = rest5 - p6

                            if rest6 == 0:

                                return 1

    else:

        return 0



print((solve()))
X = int(eval(input()))



if X >= 2000:

    print((1))

else:

    for n in range(1, 20):

        if 100 * n <= X <= 105 * n:

            print((1))

            break

    else:

        print((0))
def solve():
    X = int(eval(input()))
    if X < 100:
        return 0
    upper1 = X // 100
    for p1 in range(0, 100 * upper1 + 1, 100):
        rest1 = X - p1
        if rest1 == 0:
            return 1
        upper2 = rest1 // 101
        for p2 in range(0, 101 * upper2 + 1, 101):
            rest2 = rest1 - p2
            if rest2 == 0:
                return 1
            upper3 = rest2 // 102
            for p3 in range(0, 102 * upper3 + 1, 102):
                rest3 = rest2 - p3
                if rest3 == 0:
                    return 1
                upper4 = rest3 // 103
                for p4 in range(0, 103 * upper4 + 1, 103):
                    rest4 = rest3 - p4
                    if rest4 == 0:
                        return 1
                    upper5 = rest4 // 104
                    for p5 in range(0, 104 * upper5 + 1, 104):
                        rest5 = rest4 - p5
                        if rest5 == 0:
                            return 1
                        upper6 = rest5 // 105
                        for p6 in range(0, 105 * upper6 + 1, 105):
                            rest6 = rest5 - p6
                            if rest6 == 0:
                                return 1
    else:
        return 0


print((solve()))

X = int(eval(input()))
if X >= 2000:
    print((1))
else:
    for n in range(1, 20):
        if 100 * n <= X <= 105 * n:
            print((1))
            break
    else:
        print((0))

-def solve(): -    X = int(eval(input())) -    if X < 100: -        return 0 -    upper1 = X // 100 -    for p1 in range(0, 100 * upper1 + 1, 100): -        rest1 = X - p1 -        if rest1 == 0: -            return 1 -        upper2 = rest1 // 101 -        for p2 in range(0, 101 * upper2 + 1, 101): -            rest2 = rest1 - p2 -            if rest2 == 0: -                return 1 -            upper3 = rest2 // 102 -            for p3 in range(0, 102 * upper3 + 1, 102): -                rest3 = rest2 - p3 -                if rest3 == 0: -                    return 1 -                upper4 = rest3 // 103 -                for p4 in range(0, 103 * upper4 + 1, 103): -                    rest4 = rest3 - p4 -                    if rest4 == 0: -                        return 1 -                    upper5 = rest4 // 104 -                    for p5 in range(0, 104 * upper5 + 1, 104): -                        rest5 = rest4 - p5 -                        if rest5 == 0: -                            return 1 -                        upper6 = rest5 // 105 -                        for p6 in range(0, 105 * upper6 + 1, 105): -                            rest6 = rest5 - p6 -                            if rest6 == 0: -                                return 1 +X = int(eval(input())) +if X >= 2000: +    print((1)) +else: +    for n in range(1, 20): +        if 100 * n <= X <= 105 * n: +            print((1)) +            break -        return 0 - - -print((solve())) +        print((0))