import java.util.Scanner;

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

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