You are given two positive integers,
Constraints
Subtask 1 [20%]
Subtask 2 [80%]
No additional constraints.
Input Specification
The first line contains two space-separated integers,
Output Specification
Output one line containing one integer, the number of ones in the decimal representation of
Sample Input 1
Copy
3 5
Sample Output 1
Copy
2
Explanation for Sample 1
Sample Input 2
Copy
314159 265358
Sample Output 2
Copy
29486
Comments