e-olymp
Competitions

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.

Input

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

Output

Print the number of fives that Bob will get.

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