Description:
A number is called a Special Number if its decimal representation contains only 4s or 5s. Numbers like 4, 5, 44, 45, 55, 445 are example of special numbers.
Input : 27
Output : 6 (5+5+5+4+4+4)
Input : 49
Output : 2 (45+4 or 44+5)
Input : 220
Output : 5 (54+54+54+54+4)