Олимпиадный тренинг

Задача 3989. How many fours are there


Given a three digit number. Determine how many times the number 4 appears in it.

Input
The input is a positive three-digit number.

Imprint
Display the answer to the problem.
 

 

Example
# Input Output
1 473 1