Competitions
Preparation for Azercell Cup, 5 - 7 classes
Number of maximal digits
Find out how many times the maximum digit appears in positive integer n.
Input
One positive integer n (n < 1018
).
Output
Print how many times the maximum digit appears in positive integer n.
Input example #1
2354
Output example #1
1