#include <stdio.h>
int main ()
{
unsigned int a , b , x[ 1000 ] ,y [1000 ] ;
int cnt ,cnt2 , mx = 0 ,i ,z ,m , p ,q ;
while (scanf ("%u %u",&a , &b) == 2 )
{
p = 0 ;
while (a >0)
{
p++ ;
x [p] = a%10 ;
m = a/10 ;
a= m ;
}
q = 0 ;
while (b>0)
{
q++ ;
y [q] = b%10 ;
m = b/10 ;
b= m ;
}
if (q<p) mx = p ;
else mx = q ;
cnt= 0 ; cnt2 =0 ;z=0 ;
for (i=1 ; i<= mx ; i++)
{
if (i>p) x[i] = 0 ;
if (i>q) y[i] = 0 ;
a= x[i] + y [i] +z ;
z=0 ;
if (a > 9)
{
z++ ;
cnt ++ ;
}
else cnt2 ++ ;
}
if (a == 0 && b == 0) break ;
else if (cnt2 == mx) printf ("No carry operation.\n") ;
else if (cnt == 1) printf ("%d carry operation.\n",cnt) ;
else printf ("%d carry operations.\n",cnt) ;
}
return 0 ;
}
int main ()
{
unsigned int a , b , x[ 1000 ] ,y [1000 ] ;
int cnt ,cnt2 , mx = 0 ,i ,z ,m , p ,q ;
while (scanf ("%u %u",&a , &b) == 2 )
{
p = 0 ;
while (a >0)
{
p++ ;
x [p] = a%10 ;
m = a/10 ;
a= m ;
}
q = 0 ;
while (b>0)
{
q++ ;
y [q] = b%10 ;
m = b/10 ;
b= m ;
}
if (q<p) mx = p ;
else mx = q ;
cnt= 0 ; cnt2 =0 ;z=0 ;
for (i=1 ; i<= mx ; i++)
{
if (i>p) x[i] = 0 ;
if (i>q) y[i] = 0 ;
a= x[i] + y [i] +z ;
z=0 ;
if (a > 9)
{
z++ ;
cnt ++ ;
}
else cnt2 ++ ;
}
if (a == 0 && b == 0) break ;
else if (cnt2 == mx) printf ("No carry operation.\n") ;
else if (cnt == 1) printf ("%d carry operation.\n",cnt) ;
else printf ("%d carry operations.\n",cnt) ;
}
return 0 ;
}