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