#include<iostream>
using namespace std;
int input(char a[])//回傳共有幾位數
{
char s[100];
for(int i=0;i<99;i++)
s[i]='0';
cin>>s;
for(int i=0;i<strlen(s);i++)
a[i]=s[strlen(s)-1-i];
return strlen(s);
}
int main()
{
char a[100],b[100];
int c[100]={0};
int c1,c2,c3;
while(1)
{
c1=input(a);
c2=input(b);
if(a[0]=='0'&&b[0]=='0')break;
int carry=0,count=0;
if(c1>c2)
{
for(int i=c2;i<c1;i++)
b[i]='0';
c3=c1;
}
else if(c2>c1)
{
for(int i=c1;i<c2;i++)
a[i]='0';
c3=c2;
}
else
c3=c1;
for(int i=0;i<c3;i++)
{
c[i]=(a[i]-'0')+(b[i]-'0')+carry;
if(c[i]>=10){
carry=c[i]/10;
c[i]%=10;
count++;}
}
if(count==0)
cout<<"No carry operation."<<endl;
else if(count==1)
cout<<"1 carry operation."<<endl;
else
cout<<count<<" carry operations."<<endl;
}
}