Competitions
PP2. Week 2: March 8 - 14
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