#1 Uva10035 - Primary Arithmetic
#include <bits/stdc++.h>
using namespace std;
int main() {
long long a,b;
while(cin>>a>>b){
if(a==0 && b==0)break;
int e=0,ans=0;
while(a || b){
int x=a%10,y=b%10;
if(x+y+e>=10){
ans++;
e=1;
}else{
e=0;
}
a/=10;
b/=10;
}
if(ans==1){
cout<<ans<<" carry operation."<<endl;
}else if(ans){
cout<<ans<<" carry operations."<<endl;
}else{
cout<<"No carry operation."<<endl;
}
}
}