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