n = int(input())
nums = [100, 50, 20, 10, 5, 1]
ans = 0
for x in nums:
    ans += n // x
    n %= x
print(ans)