EasyRating 900
Dividing Digits
Count the digits of n that divide n exactly (digit 0 never counts). Repeated digits count each time.
Input
One integer n (1 ≤ n ≤ 10¹⁸).
Output
One integer.
Sample 1
Input
124
Output
3
Sample 2
Input
111
Output
3
Output appears here