#55470: python


raymond08200305@gmail.com (嗨起來)


while True:
    a,b=map(int,input().split());t=0;c=0
    if a==0 and b==0: break
    while a>0 or b>0:
        if (a%10+b%10+c)//10==1:
            c=1;t+=1
        else: c=0
        a,b=a//10,b//10
    if t==0: print("No carry operation.")
    elif t==1: print(f"{t} carry operation.")
    else: print(f"{t} carry operations.")