import collections
import itertools as it
import math
import numpy as np

# A = input()
# A = int(input())
# A = map(int, input().split())
# A = list(map(int, input().split()))
# A = [int(input()) for i in range(N)]
#
# c = collections.Counter()

X = int(input())
nshohin = X // 100
amari = X % 100

print(0 if nshohin * 5 < amari else 1)
a594d1a172ca2ea2b8f6580053f084ad91633fac
<mask token>

<mask token>
print(0 if nshohin * 5 < amari else 1)

<mask token>
X = int(input())
nshohin = X // 100
amari = X % 100
print(0 if nshohin * 5 < amari else 1)

import collections
import itertools as it
import math
import numpy as np
X = int(input())
nshohin = X // 100
amari = X % 100
print(0 if nshohin * 5 < amari else 1)

import collections
import itertools as it
import math
import numpy as np

# A = input()
# A = int(input())
# A = map(int, input().split())
# A = list(map(int, input().split()))
# A = [int(input()) for i in range(N)]
#
# c = collections.Counter()

X = int(input())
nshohin = X // 100
amari = X % 100

print(0 if nshohin * 5 < amari else 1)