import java.util.Scanner;

class Main{
    public static void main(String[] args){
	final Scanner sc=new Scanner(System.in);
	while(sc.hasNext()){
	    int a=sc.nextInt();
	    int b=sc.nextInt();
	    int sum=a+b;
	    int count=0;
	    while(true){
		count++;
		sum/=10;
		if(sum==0) break;
	    }
	    System.out.println(count);
	}
    }
} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[] args){
	final Scanner sc=new Scanner(System.in);
	while(sc.hasNext()){
	    int a=sc.nextInt();
	    int b=sc.nextInt();
	    int sum=a+b;
	    int count=0;
	    while(true){
		count++;
		sum/=10;
		if(sum==0) break;
	    }
	    System.out.println(count);
	}
    }
} Main public static void main(String[] args){
	final Scanner sc=new Scanner(System.in);
	while(sc.hasNext()){
	    int a=sc.nextInt();
	    int b=sc.nextInt();
	    int sum=a+b;
	    int count=0;
	    while(true){
		count++;
		sum/=10;
		if(sum==0) break;
	    }
	    System.out.println(count);
	}
    } main {
	final Scanner sc=new Scanner(System.in);
	while(sc.hasNext()){
	    int a=sc.nextInt();
	    int b=sc.nextInt();
	    int sum=a+b;
	    int count=0;
	    while(true){
		count++;
		sum/=10;
		if(sum==0) break;
	    }
	    System.out.println(count);
	}
    } final Scanner sc=new Scanner(System.in); sc new Scanner(System.in) while(sc.hasNext()){
	    int a=sc.nextInt();
	    int b=sc.nextInt();
	    int sum=a+b;
	    int count=0;
	    while(true){
		count++;
		sum/=10;
		if(sum==0) break;
	    }
	    System.out.println(count);
	} sc.hasNext() sc.hasNext sc {
	    int a=sc.nextInt();
	    int b=sc.nextInt();
	    int sum=a+b;
	    int count=0;
	    while(true){
		count++;
		sum/=10;
		if(sum==0) break;
	    }
	    System.out.println(count);
	} 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 count=0; count 0 while(true){
		count++;
		sum/=10;
		if(sum==0) break;
	    } true {
		count++;
		sum/=10;
		if(sum==0) break;
	    } count++ count sum/=10 sum 10 if(sum==0) break; sum==0 sum 0 break; System.out.println(count) System.out.println System.out System System.out count String[] args args
import java.util.Scanner;

class Main{
    public static void main(String[] args){
	final Scanner sc=new Scanner(System.in);
	while(sc.hasNext()){
	    int a=sc.nextInt();
	    int b=sc.nextInt();
	    int sum=a+b;
	    int count=0;
	    while(true){
		count++;
		sum/=10;
		if(sum==0) break;
	    }
	    System.out.println(count);
	}
    }
}