Adding decimal (十進位制) numbers seems like a piece of cake for human beings. In this problem, 2 positive integers, A and B, are given, and you are asked to output the sum to these integers, and the number of carries while adding.
A carry happends when the result of addition of certain digit is greater than 9. In that case, the higher digit will receive the additinal 1 when adding. See the following case:
Carry 1 1 1 1
A 7 1 2 3 4 5
B 7 8 6 6 8 5
+)________________
Sum 1 4 9 9 0 3 0
So, the sum is 1499030 and the number of carries is 4.
2 positive integers, A and B, are given in a line and seperated by a space. Each of the integers is smaller than 109, which means it will not execceed 999,999,999.
Print the sum and number of carries in a line, and seperate them with a space. And print a new line ('\n') character at the end of the your answer.