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