Allen has a LOT of money. He has n dollars in the bank. For security reasons, he wants to withdraw it in cash (we will not disclose the reasons here). The denominations for dollar bills are 1, 5, 10, 20, 100. What is the minimum number of bills Allen could receive after withdrawing his entire balance?

Input

The first and only line of input contains a single integer n (1 ≤ n ≤ 10^9).

Output

Output the minimum number of bills that Allen could receive.

Examples

Input

125


Output

3


Input

43


Output

5


Input

1000000000


Output

10000000

Note

In the first sample case, Allen can withdraw this with a 100 dollar bill, a 20 dollar bill, and a 5 dollar bill. There is no way for Allen to receive 125 dollars in one or two bills.

In the second sample case, Allen can withdraw two 20 dollar bills and three 1 dollar bills.

In the third sample case, Allen can withdraw 100000000 (ten million!) 100 dollar bills.
"""
from time import*
import random
money = 10000
cheat = input("Enter Cheat code if you know it: ")
if cheat == "SAHAR":
	money += 100000
	print("--Your balans 110000rub--")
print("You have",str(money)+"rub")
ques = input("Magazines or VulkanKazino or 1xbet:")
if ques == "1xbet":
	stavki = int(input("How many stavka you want?"))
	for i in range(stavki):
		stav = input("Input your color! :")
		mon = int(input("Money :"))
		sides = ["black","black","black","red","red","green"]
		money -= mon
		die_1 = random.choice(sides)
		if die_1 == stav:
			if stav == "black":
				money += mon*2
				print("YOU WIN")
				print("You have %.1f rub" %money)
				print()
			if stav == "red":
				money += mon*3
				print("YOU WIN")
				print("You have %.1f rub" %money)
				print()
			if stav == "green":
				money += mon*5
				print("YOU WIN")
				print("You have %.1f rub" %money)
				print()
		else:
			money +=0
			print("YOU LOSE")
			print("You have %.1f rub" %money)
elif ques == "VulkanKazino":
	
	
	pass
#####################################
s = int(input("Choise: CS:GO market = 1 , M.video = 2 , Kayhon = 3   :"))
if s == 1:
	print("----Welcome----")
	while 1:
		print("You have %.1f rub in your Wallet" %money)
		mag = int(input("Choise: 1) M4A1 -> Howl = 50000rub  ,2) AWP -> Afrikan = 50rub  ,3) ak47 -> Firesnake = 10000rub  ,4) Karambit -> ulraviolet = 20000rub   ,5) USP-S-> Kings = 100rub , 0)EXIT from magazine:"))
		if mag == 1:
			if money - 50000 < 0:
				print("Sorry you don't have a money((")
				break
			else:
				money -= 50000
				print("Tranzation succesfull, you have %.1f rub in your wallet"%money)
				print()				
		elif mag == 2:
			if money - 50 < 0:
				print("Sorry you don't have a money((")
				break
			else:
				money -= 50
				print("Tranzation succesfull, you have %.1f rub in your wallet"%money)
		elif mag == 3:
			if money - 10000 < 0:
				print("Sorry you don't have a money((")
				break
			else:
				money -= 10000
				print("Tranzation succesfull, you have %.1f rub in your wallet"%money)
		
		elif mag == 4:
			if money - 20000 < 0:
				print("Sorry you don't have a money((")
				break
			else:
				money -= 20000
				print("Tranzation succesfull, you have %.1f rub in your wallet"%money)
		elif mag == 5:
			if money - 100 < 0:
				print("Sorry you don't have a money((")
				break
			else:
				money -= 100
				print("Tranzation succesfull, you have %.1f rub in your wallet"%money)
			if mag == 0:
				break
#######################################################################################
elif s == 2:
	print("------------------------------------------------------Welcome to M.video--------------------------------------------------")
	while 1:
		print("You have %.1f rub in your Wallet" %money)
		mag1 = int(input("notebooks = 1 , PC = 2 , Game Series PC = 3 , telephones = 4, Exit = 0"))
		if mag1==0:
			break
		if mag1 == 1:
			notebook = int(input("Lenovo ideapad310 : 35000rub = 1 , HP jet black : 30000rub = 2 , fujitsu : 20000rub = 3"))
			################################################################################################################
			if notebook == 1:
				lenovo = int(input("Buy = 1 , Show characters = 2"))
				if lenovo ==  1:
					if money - 35000 < 0:
						print("Sorry you don't have a money((")
						break
					else:
						money -= 35000
						print("Tranzation succesfull, you have %.1f rub in your wallet"%money)
				else:
					print("Color: Silver","\n","RAM:12gb","\n","ROM:1TB","\n","VideoCard:Nvidia Geforce 930MX and intelHDgraphics9700")
					povt = int(input("Do you want to buy it?: YES = 1 , NO = 2"))
					if povt == 1:
						if money - 35000 < 0:
							print("Sorry you don't have a money((")
							break
						else:
							money -= 35000
							print("Tranzation succesfull, you have %.1f rub in your wallet"%money)
			####################################################################################
			if notebook == 2:
				hp = int(input("Buy = 1 , Show characters = 2"))
				if hp ==  1:
					if money - 30000 < 0:
						print("Sorry you don't have a money((")
						break
					else:
						money -= 30000
						print("Tranzation succesfull, you have %.1f rub in your wallet"%money)
				else:
					print("Color: Black","\n","RAM:8gb","\n","ROM:1TB","\n","VideoCard:AMD HD Graphics8100")
					povt = int(input("Do you want to buy it?: YES = 1 , NO = 2"))
					if povt == 1:
						if money - 30000 < 0:
							print("Sorry you don't have a money((")
							break
						else:
							money -= 30000
							print("Tranzation succesfull, you have %.1f rub in your wallet"%money)
			######################################################################################
			if notebook == 3:
				fujit = int(input("Buy = 1 , Show characters = 2"))
				if fujit == 1:
					if money - 20000 < 0:
						print("Sorry you don't have a money((")
						break
					else:
						money -= 20000
						print("Tranzation succesfull, you have %.1f rub in your wallet"%money)
				else:
					print("Color: Black","\n","RAM:4gb","\n","ROM:500GB","\n","VideoCard:IntelHD graphics3500")
					povt = int(input("Do you want to buy it?: YES = 1 , NO = 2"))
					if povt == 1:
						if money - 20000 < 0:
							print("Sorry you don't have a money((")
							break
						else:
							money -= 20000
							print("Tranzation succesfull, you have %.1f rub in your wallet"%money)
				
		if mag1 == 2:
			pc = int(input("1) DELL = 100000 , 2)ASUS = 60000 , 3)Apple = 500000 , 4)Lenovo = 300000"))
			############################################################################################
			if pc == 1:
				pc = int(input("Buy = 1 , Show characters = 2"))
				if pc ==  1:
					if money - 100000 < 0:
						print("Sorry you don't have a money((")
						break
					else:
						money -= 100000
						print("Tranzation succesfull, you have %.1f rub in your wallet"%money)
				else:
					print("Color: black","\n","RAM:32gb","\n","ROM:2TB","\n","VideoCard:Nvidia Geforce GTX 1070TI")
					povt = int(input("Do you want to buy it?: YES = 1 , NO = 2"))
					if povt == 1:
						if money - 100000 < 0:
							print("Sorry you don't have a money((")
							break
						else:
							money -= 100000
							print("Tranzation succesfull, you have %.1f rub in your wallet"%money)
"""
"""
n=int(input())
while n>5:
    n = n - 4
    s=n%2
    n=(n-s)/2
if n==1:
	print('Sheldon')
if n==2:
	print('Leonard')
if n==3:
	print('Penny') 
if n==4:
	print('Rajesh')
if n==5:print('Howard')
"""

"""
n,l,a=map(int,input().split())
ans=0
if n>0:
    lt,ltt=0,0
    
    for i in range(n):
        t,tt=map(int,input().split())
        ans+=(t-(lt+ltt))//a
        lt,ltt=t,tt
    ans+=(l-(lt+ltt))//a
else:
    ans+=l//a

print(ans)
"""
"""
tc=int(input())
for i in range(tc):
    s,a,b,c=map(int,input().split())
    d=s//c
    p=d//a
    p=p*b
    print(p+d)
"""
"""
n,k,l,c,d,p,nl,np = map(int,input().split())
ml = k * l
tost = ml // nl
lim = c * d
nam = p / np
print(int(min(tost,lim,nam)/n))
"""
"""
n,d = map(int,input().split())
a = list(map(int,input().split()))
a.sort()
a.reverse()
ans = 0
for i in range(n//2):
	if a[i] - a[i+1] <= d:
			ans += 1
print(ans,a)
"""
"""
n,m = map(int, input().split())
s = list(map(str,input()))
for i in range(m):
	l, r, c1, c2 =input().split()
	l = int(l)
	r = int(r)
	for i in range(l-1, r):
		if s[i] == c1:
			s[i] = c2
print(*s, sep='')
"""
n=int(input())
a1=n//100
n=n%100
a2=n//20
n=n%20
a3=n//10
n=n%10
a4=n//5
n=n%5
a5=n
print(a1+a2+a3+a4+a5)
