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

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

} Main public static void main(String[] args){
	 
	Scanner sc= new Scanner (System.in);
	int a=0;
	int b=0;
	int c=0;
	while (sc.hasNext()) {
		a = sc.nextInt();
		b = sc.nextInt();
		c = a + b;
		int	count = 0;
		do {
			c /= 10;
			count++;
		} while(c != 0);
		System.out.println(count);
	}	
		
	 
	
	} main {
	 
	Scanner sc= new Scanner (System.in);
	int a=0;
	int b=0;
	int c=0;
	while (sc.hasNext()) {
		a = sc.nextInt();
		b = sc.nextInt();
		c = a + b;
		int	count = 0;
		do {
			c /= 10;
			count++;
		} while(c != 0);
		System.out.println(count);
	}	
		
	 
	
	} Scanner sc= new Scanner (System.in); sc new Scanner (System.in) int a=0; a 0 int b=0; b 0 int c=0; c 0 while (sc.hasNext()) {
		a = sc.nextInt();
		b = sc.nextInt();
		c = a + b;
		int	count = 0;
		do {
			c /= 10;
			count++;
		} while(c != 0);
		System.out.println(count);
	} sc.hasNext() sc.hasNext sc {
		a = sc.nextInt();
		b = sc.nextInt();
		c = a + b;
		int	count = 0;
		do {
			c /= 10;
			count++;
		} while(c != 0);
		System.out.println(count);
	} 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 int	count = 0; count 0 do {
			c /= 10;
			count++;
		} while(c != 0); c != 0 c 0 {
			c /= 10;
			count++;
		} c /= 10 c 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){
	 
	Scanner sc= new Scanner (System.in);
	int a=0;
	int b=0;
	int c=0;
	while (sc.hasNext()) {
		a = sc.nextInt();
		b = sc.nextInt();
		c = a + b;
		int	count = 0;
		do {
			c /= 10;
			count++;
		} while(c != 0);
		System.out.println(count);
	}	
		
	 
	
	}

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

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

}