import java.util.*;
class Main{
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		Main app = new Main();
		while(sc.hasNext()){
		System.out.println(app.length(sc.nextInt(),sc.nextInt()));
		}
	}
	
	
	
	int length(int a,int b){
		int ans = 1;
		a += b;
		while(a  >=  10){
				ans ++;
				a /=10;
		}
		return ans;
	}
	
	
	
	
	
	
} import java.util.*; util.* java class Main{
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		Main app = new Main();
		while(sc.hasNext()){
		System.out.println(app.length(sc.nextInt(),sc.nextInt()));
		}
	}
	
	
	
	int length(int a,int b){
		int ans = 1;
		a += b;
		while(a  >=  10){
				ans ++;
				a /=10;
		}
		return ans;
	}
	
	
	
	
	
	
} Main public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		Main app = new Main();
		while(sc.hasNext()){
		System.out.println(app.length(sc.nextInt(),sc.nextInt()));
		}
	} main {
		
		Scanner sc = new Scanner(System.in);
		Main app = new Main();
		while(sc.hasNext()){
		System.out.println(app.length(sc.nextInt(),sc.nextInt()));
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) Main app = new Main(); app new Main() while(sc.hasNext()){
		System.out.println(app.length(sc.nextInt(),sc.nextInt()));
		} sc.hasNext() sc.hasNext sc {
		System.out.println(app.length(sc.nextInt(),sc.nextInt()));
		} System.out.println(app.length(sc.nextInt(),sc.nextInt())) System.out.println System.out System System.out app.length(sc.nextInt(),sc.nextInt()) app.length app sc.nextInt() sc.nextInt sc sc.nextInt() sc.nextInt sc String[] args args int length(int a,int b){
		int ans = 1;
		a += b;
		while(a  >=  10){
				ans ++;
				a /=10;
		}
		return ans;
	} length {
		int ans = 1;
		a += b;
		while(a  >=  10){
				ans ++;
				a /=10;
		}
		return ans;
	} int ans = 1; ans 1 a += b a b while(a  >=  10){
				ans ++;
				a /=10;
		} a  >=  10 a 10 {
				ans ++;
				a /=10;
		} ans ++ ans a /=10 a 10 return ans; ans int a a int b b
import java.util.*;
class Main{
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		Main app = new Main();
		while(sc.hasNext()){
		System.out.println(app.length(sc.nextInt(),sc.nextInt()));
		}
	}
	
	
	
	int length(int a,int b){
		int ans = 1;
		a += b;
		while(a  >=  10){
				ans ++;
				a /=10;
		}
		return ans;
	}
	
	
	
	
	
	
}