#include <stdio.h>
#include <stdlib.h>
#define N 3
int main()
{
	int x , y, g;
	while (scanf("%d %d", &x, &y)==2) 
	{
		if (x == 0 && y == 0)
			break;

		g = carry(x, y);
		if (g == 0) printf("no carry operation\n");
		else if (g>0) printf("%d carry operations\n", g);
	}


	return 0;
}

int carry(int x, int y)
{
	int a, b, c, d, e;
	int carrynext = 0;
	int carry = 0;
	a = x;
	c = y;
	while (a != 0 && c != 0)

	{

		b = a % 10;
		a = a / 10; /*12*/
		d = c % 10; /*3*/
		c = c / 10; /*45*/
					/*9*/
		e = b + d + carrybrkt;

		if (e >= 10)
		{
			carry += 1;
			carrynext = e / 10;
		}
		else {
			carry += 0;
			carrynext = e / 10;
		}
	}


	return carry;
}
