favorite We need a little bit of your help to keep things running, click on this banner to learn more

Beginners contest: Loops - 2

Bob the honors pupil

Bob is a the honors pupil. He enjoys every five that he sees in a number. Every morning, he goes by bus and counts the number of fives in his bus ticket. According to the ancient omen (valid from the 2 - class), he knows that this day he will receive such number of fives, how many of them in his ticket. Given today's Vasya's ticket number, determine how many fives he will get today.


Vasya's a ticket number n (0n9999).


Print the number of fives that Bob will get.

Time limit 1 second
Memory limit 128 MiB
Input example #1
Output example #1