import java.util.Scanner;

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

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