import java.io.*;
import java.util.*;
public class Main
{
 public static void main(String args[]) throws Exception
            {
 Scanner cin=new Scanner(System.in);
 int a,b;
 cin.useDelimiter("\n| ");
 while(cin.hasNext()){
	 a = cin.nextInt();
	 b = cin.nextInt();
	 int sum = a+b;
	 int count = 0;
	 while (sum>0){
		 sum = sum/10;
		 count++;
	 }
	 
	 System.out.println(count);
	 
 	
 }
       
            
            }
} import java.io.*; io.* java import java.util.*; util.* java public class Main
{
 public static void main(String args[]) throws Exception
            {
 Scanner cin=new Scanner(System.in);
 int a,b;
 cin.useDelimiter("\n| ");
 while(cin.hasNext()){
	 a = cin.nextInt();
	 b = cin.nextInt();
	 int sum = a+b;
	 int count = 0;
	 while (sum>0){
		 sum = sum/10;
		 count++;
	 }
	 
	 System.out.println(count);
	 
 	
 }
       
            
            }
} Main public static void main(String args[]) throws Exception
            {
 Scanner cin=new Scanner(System.in);
 int a,b;
 cin.useDelimiter("\n| ");
 while(cin.hasNext()){
	 a = cin.nextInt();
	 b = cin.nextInt();
	 int sum = a+b;
	 int count = 0;
	 while (sum>0){
		 sum = sum/10;
		 count++;
	 }
	 
	 System.out.println(count);
	 
 	
 }
       
            
            } main {
 Scanner cin=new Scanner(System.in);
 int a,b;
 cin.useDelimiter("\n| ");
 while(cin.hasNext()){
	 a = cin.nextInt();
	 b = cin.nextInt();
	 int sum = a+b;
	 int count = 0;
	 while (sum>0){
		 sum = sum/10;
		 count++;
	 }
	 
	 System.out.println(count);
	 
 	
 }
       
            
            } Scanner cin=new Scanner(System.in); cin new Scanner(System.in) int a a b; b cin.useDelimiter("\n| ") cin.useDelimiter cin "\n| " while(cin.hasNext()){
	 a = cin.nextInt();
	 b = cin.nextInt();
	 int sum = a+b;
	 int count = 0;
	 while (sum>0){
		 sum = sum/10;
		 count++;
	 }
	 
	 System.out.println(count);
	 
 	
 } cin.hasNext() cin.hasNext cin {
	 a = cin.nextInt();
	 b = cin.nextInt();
	 int sum = a+b;
	 int count = 0;
	 while (sum>0){
		 sum = sum/10;
		 count++;
	 }
	 
	 System.out.println(count);
	 
 	
 } a = cin.nextInt() a cin.nextInt() cin.nextInt cin b = cin.nextInt() b cin.nextInt() cin.nextInt cin int sum = a+b; sum a+b a b int count = 0; count 0 while (sum>0){
		 sum = sum/10;
		 count++;
	 } sum>0 sum 0 {
		 sum = sum/10;
		 count++;
	 } sum = sum/10 sum sum/10 sum 10 count++ count System.out.println(count) System.out.println System.out System System.out count String args[] args public class Main
{
 public static void main(String args[]) throws Exception
            {
 Scanner cin=new Scanner(System.in);
 int a,b;
 cin.useDelimiter("\n| ");
 while(cin.hasNext()){
	 a = cin.nextInt();
	 b = cin.nextInt();
	 int sum = a+b;
	 int count = 0;
	 while (sum>0){
		 sum = sum/10;
		 count++;
	 }
	 
	 System.out.println(count);
	 
 	
 }
       
            
            }
} public class Main
{
 public static void main(String args[]) throws Exception
            {
 Scanner cin=new Scanner(System.in);
 int a,b;
 cin.useDelimiter("\n| ");
 while(cin.hasNext()){
	 a = cin.nextInt();
	 b = cin.nextInt();
	 int sum = a+b;
	 int count = 0;
	 while (sum>0){
		 sum = sum/10;
		 count++;
	 }
	 
	 System.out.println(count);
	 
 	
 }
       
            
            }
} Main
import java.io.*;
import java.util.*;
public class Main
{
 public static void main(String args[]) throws Exception
            {
 Scanner cin=new Scanner(System.in);
 int a,b;
 cin.useDelimiter("\n| ");
 while(cin.hasNext()){
	 a = cin.nextInt();
	 b = cin.nextInt();
	 int sum = a+b;
	 int count = 0;
	 while (sum>0){
		 sum = sum/10;
		 count++;
	 }
	 
	 System.out.println(count);
	 
 	
 }
       
            
            }
}