#include <iostream>
using namespace std;
int main() {
long long a,b,c=0,d=0;
while(1){
cin>>a>>b;
if(a==0&&b==0)
break;
while(1){
if(a%10+b%10+c>=10){
c=(a%10+b%10+c)/10;
d++;}
else
c=0;
a=a/10;
b=b/10;
if(a==0&&b==0)
break;
}
if(d==1){
cout<<"1 carry operation."<<endl;
d=0;}
else if(d==0)
cout<<"No carry operation."<<endl;
else{
cout<<d<<" carry operations."<<endl;
d=0;}
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7Cglsb25nIGxvbmcgYSxiLGM9MCxkPTA7Cgp3aGlsZSgxKXsKY2luPj5hPj5iOwppZihhPT0wJiZiPT0wKQpicmVhazsKd2hpbGUoMSl7CmlmKGElMTArYiUxMCtjPj0xMCl7CmM9KGElMTArYiUxMCtjKS8xMDsKZCsrO30KZWxzZSAKYz0wOwphPWEvMTA7CmI9Yi8xMDsKaWYoYT09MCYmYj09MCkKYnJlYWs7Cn0KaWYoZD09MSl7CmNvdXQ8PCIxIGNhcnJ5IG9wZXJhdGlvbi4iPDxlbmRsOwpkPTA7fQplbHNlIGlmKGQ9PTApCmNvdXQ8PCJObyBjYXJyeSBvcGVyYXRpb24uIjw8ZW5kbDsKZWxzZXsKY291dDw8ZDw8IiBjYXJyeSBvcGVyYXRpb25zLiI8PGVuZGw7CmQ9MDt9Cn0KCXJldHVybiAwOwp9