9006 - Carry In   

Description

Compute how many carries occur when calculating A + B.

Input

For each case a line, there will be two positive integers A and B < 10100.

Output

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

Sample Input  Download

Sample Output  Download

Tags




Discuss