Number of maximal digits
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Find out how many times the maximum digit appears in the positive integer .
Input
One positive integer .
Output
Print how many times the maximum digit appears in the positive integer .
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 11K
Acceptance rate 50%