import java.util.Scanner;


public class Main{
	static int turn=0;
	static int dfs(int sum) {
		if(0<=sum && sum<=9) {
			return 1;
		}
		return dfs(sum/10)+1;
	}
    public  static void main(String[] args) {
    	try (Scanner sc = new Scanner(System.in)) {
    		while(sc.hasNext()) {
    			int a=sc.nextInt();
    			int b=sc.nextInt();
    			int sum=a+b;
    			System.out.println(dfs(sum));
    		}
    	}
    }
} import java.util.Scanner; Scanner java.util public class Main{
	static int turn=0;
	static int dfs(int sum) {
		if(0<=sum && sum<=9) {
			return 1;
		}
		return dfs(sum/10)+1;
	}
    public  static void main(String[] args) {
    	try (Scanner sc = new Scanner(System.in)) {
    		while(sc.hasNext()) {
    			int a=sc.nextInt();
    			int b=sc.nextInt();
    			int sum=a+b;
    			System.out.println(dfs(sum));
    		}
    	}
    }
} Main static int turn=0; turn 0 static int dfs(int sum) {
		if(0<=sum && sum<=9) {
			return 1;
		}
		return dfs(sum/10)+1;
	} dfs {
		if(0<=sum && sum<=9) {
			return 1;
		}
		return dfs(sum/10)+1;
	} if(0<=sum && sum<=9) {
			return 1;
		} 0<=sum && sum<=9 0<=sum 0 sum sum<=9 sum 9 {
			return 1;
		} return 1; 1 return dfs(sum/10)+1; dfs(sum/10)+1 dfs(sum/10) dfs sum/10 sum 10 1 int sum sum public  static void main(String[] args) {
    	try (Scanner sc = new Scanner(System.in)) {
    		while(sc.hasNext()) {
    			int a=sc.nextInt();
    			int b=sc.nextInt();
    			int sum=a+b;
    			System.out.println(dfs(sum));
    		}
    	}
    } main {
    	try (Scanner sc = new Scanner(System.in)) {
    		while(sc.hasNext()) {
    			int a=sc.nextInt();
    			int b=sc.nextInt();
    			int sum=a+b;
    			System.out.println(dfs(sum));
    		}
    	}
    } try (Scanner sc = new Scanner(System.in)) {
    		while(sc.hasNext()) {
    			int a=sc.nextInt();
    			int b=sc.nextInt();
    			int sum=a+b;
    			System.out.println(dfs(sum));
    		}
    	} {
    		while(sc.hasNext()) {
    			int a=sc.nextInt();
    			int b=sc.nextInt();
    			int sum=a+b;
    			System.out.println(dfs(sum));
    		}
    	} Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) while(sc.hasNext()) {
    			int a=sc.nextInt();
    			int b=sc.nextInt();
    			int sum=a+b;
    			System.out.println(dfs(sum));
    		} sc.hasNext() sc.hasNext sc {
    			int a=sc.nextInt();
    			int b=sc.nextInt();
    			int sum=a+b;
    			System.out.println(dfs(sum));
    		} int a=sc.nextInt(); a sc.nextInt() sc.nextInt sc int b=sc.nextInt(); b sc.nextInt() sc.nextInt sc int sum=a+b; sum a+b a b System.out.println(dfs(sum)) System.out.println System.out System System.out dfs(sum) dfs sum String[] args args public class Main{
	static int turn=0;
	static int dfs(int sum) {
		if(0<=sum && sum<=9) {
			return 1;
		}
		return dfs(sum/10)+1;
	}
    public  static void main(String[] args) {
    	try (Scanner sc = new Scanner(System.in)) {
    		while(sc.hasNext()) {
    			int a=sc.nextInt();
    			int b=sc.nextInt();
    			int sum=a+b;
    			System.out.println(dfs(sum));
    		}
    	}
    }
} public class Main{
	static int turn=0;
	static int dfs(int sum) {
		if(0<=sum && sum<=9) {
			return 1;
		}
		return dfs(sum/10)+1;
	}
    public  static void main(String[] args) {
    	try (Scanner sc = new Scanner(System.in)) {
    		while(sc.hasNext()) {
    			int a=sc.nextInt();
    			int b=sc.nextInt();
    			int sum=a+b;
    			System.out.println(dfs(sum));
    		}
    	}
    }
} Main
import java.util.Scanner;


public class Main{
	static int turn=0;
	static int dfs(int sum) {
		if(0<=sum && sum<=9) {
			return 1;
		}
		return dfs(sum/10)+1;
	}
    public  static void main(String[] args) {
    	try (Scanner sc = new Scanner(System.in)) {
    		while(sc.hasNext()) {
    			int a=sc.nextInt();
    			int b=sc.nextInt();
    			int sum=a+b;
    			System.out.println(dfs(sum));
    		}
    	}
    }
}
