9104 - Carry In   

Description

Compute how many carries will occur when calculating the sum of two decimal numbers A and B.

Input

For each case a line, there are two positive integers A and B. ( 0 < A, B < 101000 ) There are multiple cases terminated by EOF.

Output

For each case a line, output how many carries occur.

Sample Input  Download

Sample Output  Download

Tags




Discuss