We’re preparing your current view and syncing the latest data.
You are given two integers A and B. The task is to compute the sum of the sum of digits of A and the sum of digits of B. For example, if A=123 and B=912, the answer is (1+2+3) + (9+1+2) = 6 + 12 = 18.
Two space-separated integers A and B.
Print a single integer representing the sum of the digits of A plus the sum of the digits of B.
1 ≤ A, B ≤ 10^9
Example 1
Input
123 912
Output
18
Explanation
The sum of digits of 123 is 1+2+3=6. The sum of digits of 912 is 9+1+2=12. Total sum is 6+12=18.