import java.util.Scanner;
class Main{
    public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
   while(sc.hasNextInt()){
	   int b=sc.nextInt();
	   int c=sc.nextInt();
	   System.out.println(String.valueOf(b+c).length()
);
   }
    }
} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
   while(sc.hasNextInt()){
	   int b=sc.nextInt();
	   int c=sc.nextInt();
	   System.out.println(String.valueOf(b+c).length()
);
   }
    }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
   while(sc.hasNextInt()){
	   int b=sc.nextInt();
	   int c=sc.nextInt();
	   System.out.println(String.valueOf(b+c).length()
);
   }
    } main {
    Scanner sc = new Scanner(System.in);
   while(sc.hasNextInt()){
	   int b=sc.nextInt();
	   int c=sc.nextInt();
	   System.out.println(String.valueOf(b+c).length()
);
   }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while(sc.hasNextInt()){
	   int b=sc.nextInt();
	   int c=sc.nextInt();
	   System.out.println(String.valueOf(b+c).length()
);
   } sc.hasNextInt() sc.hasNextInt sc {
	   int b=sc.nextInt();
	   int c=sc.nextInt();
	   System.out.println(String.valueOf(b+c).length()
);
   } int b=sc.nextInt(); b sc.nextInt() sc.nextInt sc int c=sc.nextInt(); c sc.nextInt() sc.nextInt sc System.out.println(String.valueOf(b+c).length()
) System.out.println System.out System System.out String.valueOf(b+c).length() String.valueOf(b+c).length String.valueOf(b+c) String.valueOf String b+c b c String[] args args
import java.util.Scanner;
class Main{
    public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
   while(sc.hasNextInt()){
	   int b=sc.nextInt();
	   int c=sc.nextInt();
	   System.out.println(String.valueOf(b+c).length()
);
   }
    }
}