class Main
{
	public static void main( String[] args )
	{
		java.util.Scanner sc = new java.util.Scanner( System.in );
		int sum;
		int digitNum = 0;
		
		while( sc.hasNext() )
		{
			sum = sc.nextInt() +  sc.nextInt();
			
			digitNum = 0;
			while( sum > 0 )
			{
				sum /= 10;
				digitNum++;
			}
			System.out.println( digitNum );
		}
	}
} class Main
{
	public static void main( String[] args )
	{
		java.util.Scanner sc = new java.util.Scanner( System.in );
		int sum;
		int digitNum = 0;
		
		while( sc.hasNext() )
		{
			sum = sc.nextInt() +  sc.nextInt();
			
			digitNum = 0;
			while( sum > 0 )
			{
				sum /= 10;
				digitNum++;
			}
			System.out.println( digitNum );
		}
	}
} Main public static void main( String[] args )
	{
		java.util.Scanner sc = new java.util.Scanner( System.in );
		int sum;
		int digitNum = 0;
		
		while( sc.hasNext() )
		{
			sum = sc.nextInt() +  sc.nextInt();
			
			digitNum = 0;
			while( sum > 0 )
			{
				sum /= 10;
				digitNum++;
			}
			System.out.println( digitNum );
		}
	} main {
		java.util.Scanner sc = new java.util.Scanner( System.in );
		int sum;
		int digitNum = 0;
		
		while( sc.hasNext() )
		{
			sum = sc.nextInt() +  sc.nextInt();
			
			digitNum = 0;
			while( sum > 0 )
			{
				sum /= 10;
				digitNum++;
			}
			System.out.println( digitNum );
		}
	} java.util.Scanner sc = new java.util.Scanner( System.in ); sc new java.util.Scanner( System.in ) int sum; sum int digitNum = 0; digitNum 0 while( sc.hasNext() )
		{
			sum = sc.nextInt() +  sc.nextInt();
			
			digitNum = 0;
			while( sum > 0 )
			{
				sum /= 10;
				digitNum++;
			}
			System.out.println( digitNum );
		} sc.hasNext() sc.hasNext sc {
			sum = sc.nextInt() +  sc.nextInt();
			
			digitNum = 0;
			while( sum > 0 )
			{
				sum /= 10;
				digitNum++;
			}
			System.out.println( digitNum );
		} sum = sc.nextInt() +  sc.nextInt() sum sc.nextInt() +  sc.nextInt() sc.nextInt() sc.nextInt sc sc.nextInt() sc.nextInt sc digitNum = 0 digitNum 0 while( sum > 0 )
			{
				sum /= 10;
				digitNum++;
			} sum > 0 sum 0 {
				sum /= 10;
				digitNum++;
			} sum /= 10 sum 10 digitNum++ digitNum System.out.println( digitNum ) System.out.println System.out System System.out digitNum String[] args args
class Main
{
	public static void main( String[] args )
	{
		java.util.Scanner sc = new java.util.Scanner( System.in );
		int sum;
		int digitNum = 0;
		
		while( sc.hasNext() )
		{
			sum = sc.nextInt() +  sc.nextInt();
			
			digitNum = 0;
			while( sum > 0 )
			{
				sum /= 10;
				digitNum++;
			}
			System.out.println( digitNum );
		}
	}
}