import java.util.Scanner;
import java.util.Arrays;
public class Main
{
	public static void main(String args[])
	{
		Scanner input = new Scanner(System.in);
        int a, b, count;
        while( input.hasNext() )
        {
            a = input.nextInt();
            b = input.nextInt();
            a += b;
            count = 0;
            while( a > 0 )
            {
                count ++;
                a /= 10;
            }
            System.out.println( count );
        }
	}
} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util public class Main
{
	public static void main(String args[])
	{
		Scanner input = new Scanner(System.in);
        int a, b, count;
        while( input.hasNext() )
        {
            a = input.nextInt();
            b = input.nextInt();
            a += b;
            count = 0;
            while( a > 0 )
            {
                count ++;
                a /= 10;
            }
            System.out.println( count );
        }
	}
} Main public static void main(String args[])
	{
		Scanner input = new Scanner(System.in);
        int a, b, count;
        while( input.hasNext() )
        {
            a = input.nextInt();
            b = input.nextInt();
            a += b;
            count = 0;
            while( a > 0 )
            {
                count ++;
                a /= 10;
            }
            System.out.println( count );
        }
	} main {
		Scanner input = new Scanner(System.in);
        int a, b, count;
        while( input.hasNext() )
        {
            a = input.nextInt();
            b = input.nextInt();
            a += b;
            count = 0;
            while( a > 0 )
            {
                count ++;
                a /= 10;
            }
            System.out.println( count );
        }
	} Scanner input = new Scanner(System.in); input new Scanner(System.in) int a a b b count; count while( input.hasNext() )
        {
            a = input.nextInt();
            b = input.nextInt();
            a += b;
            count = 0;
            while( a > 0 )
            {
                count ++;
                a /= 10;
            }
            System.out.println( count );
        } input.hasNext() input.hasNext input {
            a = input.nextInt();
            b = input.nextInt();
            a += b;
            count = 0;
            while( a > 0 )
            {
                count ++;
                a /= 10;
            }
            System.out.println( count );
        } a = input.nextInt() a input.nextInt() input.nextInt input b = input.nextInt() b input.nextInt() input.nextInt input a += b a b count = 0 count 0 while( a > 0 )
            {
                count ++;
                a /= 10;
            } a > 0 a 0 {
                count ++;
                a /= 10;
            } count ++ count a /= 10 a 10 System.out.println( count ) System.out.println System.out System System.out count String args[] args public class Main
{
	public static void main(String args[])
	{
		Scanner input = new Scanner(System.in);
        int a, b, count;
        while( input.hasNext() )
        {
            a = input.nextInt();
            b = input.nextInt();
            a += b;
            count = 0;
            while( a > 0 )
            {
                count ++;
                a /= 10;
            }
            System.out.println( count );
        }
	}
} public class Main
{
	public static void main(String args[])
	{
		Scanner input = new Scanner(System.in);
        int a, b, count;
        while( input.hasNext() )
        {
            a = input.nextInt();
            b = input.nextInt();
            a += b;
            count = 0;
            while( a > 0 )
            {
                count ++;
                a /= 10;
            }
            System.out.println( count );
        }
	}
} Main
import java.util.Scanner;
import java.util.Arrays;
public class Main
{
	public static void main(String args[])
	{
		Scanner input = new Scanner(System.in);
        int a, b, count;
        while( input.hasNext() )
        {
            a = input.nextInt();
            b = input.nextInt();
            a += b;
            count = 0;
            while( a > 0 )
            {
                count ++;
                a /= 10;
            }
            System.out.println( count );
        }
	}
}