def fun(a):
    res = []
    while a >0:
        t = a % 10
        a = a / 10
        res.append(t)
    return res

def add(a, b):
    a = fun(a)
    b = fun(b)
    i, j = 0, 0
    c = 0
    while i < len(a) and j < len(b):
        if a[i] + b[j] >= 10:
            c+=1
        i+=1
        j+=1
    return c

while True:
    try:
        a, b = map(int, input().split())
        if a == 0 and b == 0:
            break
        res = add(a, b)
        if res == 0:
            print("NO carry operation.")
        elif res == 1:
            print("%d carry operation."%(res))
        else:
            print("%d carry operations."%(res))
    except:
        break