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 (0 ≤ n ≤ 9999).
Print the number of fives that Bob will get.