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