11224: 小学生算数

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:2 Solved:0

Description

很多小学生在计算整数加法时很容易发生进位错误,你的任务是计算任意加法需要进位几次。

Input

输入任意两个三位数a,b.

Output

输出a+b的过程中要产生几次进位

Sample Input Copy

123 456
555 555
123 594

Sample Output Copy

0
3
1