/* Volume0 0002 Digit Number */
import java.util.Scanner;

class Main{
	public static void main(String[] args){

		Scanner stdIn = new Scanner(System.in);

		while( stdIn.hasNext()){
			System.out.println( (int)Math.log10(stdIn.nextInt()+stdIn.nextInt())+1 );
		}

	}
} import java.util.Scanner; Scanner java.util class Main{
	public static void main(String[] args){

		Scanner stdIn = new Scanner(System.in);

		while( stdIn.hasNext()){
			System.out.println( (int)Math.log10(stdIn.nextInt()+stdIn.nextInt())+1 );
		}

	}
} Main public static void main(String[] args){

		Scanner stdIn = new Scanner(System.in);

		while( stdIn.hasNext()){
			System.out.println( (int)Math.log10(stdIn.nextInt()+stdIn.nextInt())+1 );
		}

	} main {

		Scanner stdIn = new Scanner(System.in);

		while( stdIn.hasNext()){
			System.out.println( (int)Math.log10(stdIn.nextInt()+stdIn.nextInt())+1 );
		}

	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) while( stdIn.hasNext()){
			System.out.println( (int)Math.log10(stdIn.nextInt()+stdIn.nextInt())+1 );
		} stdIn.hasNext() stdIn.hasNext stdIn {
			System.out.println( (int)Math.log10(stdIn.nextInt()+stdIn.nextInt())+1 );
		} System.out.println( (int)Math.log10(stdIn.nextInt()+stdIn.nextInt())+1 ) System.out.println System.out System System.out (int)Math.log10(stdIn.nextInt()+stdIn.nextInt())+1 (int)Math.log10(stdIn.nextInt()+stdIn.nextInt()) Math.log10 Math stdIn.nextInt()+stdIn.nextInt() stdIn.nextInt() stdIn.nextInt stdIn stdIn.nextInt() stdIn.nextInt stdIn 1 String[] args args
/* Volume0 0002 Digit Number */
import java.util.Scanner;

class Main{
	public static void main(String[] args){

		Scanner stdIn = new Scanner(System.in);

		while( stdIn.hasNext()){
			System.out.println( (int)Math.log10(stdIn.nextInt()+stdIn.nextInt())+1 );
		}

	}
}