Compute how many carries occur when calculating A + B.
For each case a line, there will be two positive integers A and B < 10100.
For each case a line, output how many times carries occur.