
import java.util.Scanner;
import java.util.ArrayList;
class Main
{
	public static void main(String[] av)
	{
		Scanner sc  = new Scanner( System.in );
		ArrayList<Integer> al = new ArrayList<Integer>();

		while( sc.hasNextInt() )
		{
			int a = sc.nextInt();
			int b = sc.nextInt();
			int sum = a + b;
			int digit = String.valueOf(sum).length();	
			al.add( digit );
		}
		for ( Integer num : al )
		{
			System.out.println(num );
		}
	}
}
		 import java.util.Scanner; Scanner java.util import java.util.ArrayList; ArrayList java.util class Main
{
	public static void main(String[] av)
	{
		Scanner sc  = new Scanner( System.in );
		ArrayList<Integer> al = new ArrayList<Integer>();

		while( sc.hasNextInt() )
		{
			int a = sc.nextInt();
			int b = sc.nextInt();
			int sum = a + b;
			int digit = String.valueOf(sum).length();	
			al.add( digit );
		}
		for ( Integer num : al )
		{
			System.out.println(num );
		}
	}
} Main public static void main(String[] av)
	{
		Scanner sc  = new Scanner( System.in );
		ArrayList<Integer> al = new ArrayList<Integer>();

		while( sc.hasNextInt() )
		{
			int a = sc.nextInt();
			int b = sc.nextInt();
			int sum = a + b;
			int digit = String.valueOf(sum).length();	
			al.add( digit );
		}
		for ( Integer num : al )
		{
			System.out.println(num );
		}
	} main {
		Scanner sc  = new Scanner( System.in );
		ArrayList<Integer> al = new ArrayList<Integer>();

		while( sc.hasNextInt() )
		{
			int a = sc.nextInt();
			int b = sc.nextInt();
			int sum = a + b;
			int digit = String.valueOf(sum).length();	
			al.add( digit );
		}
		for ( Integer num : al )
		{
			System.out.println(num );
		}
	} Scanner sc  = new Scanner( System.in ); sc new Scanner( System.in ) ArrayList<Integer> al = new ArrayList<Integer>(); al new ArrayList<Integer>() while( sc.hasNextInt() )
		{
			int a = sc.nextInt();
			int b = sc.nextInt();
			int sum = a + b;
			int digit = String.valueOf(sum).length();	
			al.add( digit );
		} sc.hasNextInt() sc.hasNextInt sc {
			int a = sc.nextInt();
			int b = sc.nextInt();
			int sum = a + b;
			int digit = String.valueOf(sum).length();	
			al.add( digit );
		} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int sum = a + b; sum a + b a b int digit = String.valueOf(sum).length(); digit String.valueOf(sum).length() String.valueOf(sum).length String.valueOf(sum) String.valueOf String sum al.add( digit ) al.add al digit for ( Integer num : al )
		{
			System.out.println(num );
		} Integer num al {
			System.out.println(num );
		} {
			System.out.println(num );
		} System.out.println(num ) System.out.println System.out System System.out num String[] av av

import java.util.Scanner;
import java.util.ArrayList;
class Main
{
	public static void main(String[] av)
	{
		Scanner sc  = new Scanner( System.in );
		ArrayList<Integer> al = new ArrayList<Integer>();

		while( sc.hasNextInt() )
		{
			int a = sc.nextInt();
			int b = sc.nextInt();
			int sum = a + b;
			int digit = String.valueOf(sum).length();	
			al.add( digit );
		}
		for ( Integer num : al )
		{
			System.out.println(num );
		}
	}
}
		