import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main{

	public static void main (String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line;
		
		while ((line = br.readLine()) != null) {
			String[] numbers = line.split(" ");
			int sum = 0;
            int a = Integer.parseInt(numbers[0]);
            int b = Integer.parseInt(numbers[1]);
            sum = a + b;
            
            int ans = 1;
            while((sum /= 10) > 0){
            	ans++;
            }
            System.out.println(ans);
        }
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main{

	public static void main (String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line;
		
		while ((line = br.readLine()) != null) {
			String[] numbers = line.split(" ");
			int sum = 0;
            int a = Integer.parseInt(numbers[0]);
            int b = Integer.parseInt(numbers[1]);
            sum = a + b;
            
            int ans = 1;
            while((sum /= 10) > 0){
            	ans++;
            }
            System.out.println(ans);
        }
	}
} Main public static void main (String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line;
		
		while ((line = br.readLine()) != null) {
			String[] numbers = line.split(" ");
			int sum = 0;
            int a = Integer.parseInt(numbers[0]);
            int b = Integer.parseInt(numbers[1]);
            sum = a + b;
            
            int ans = 1;
            while((sum /= 10) > 0){
            	ans++;
            }
            System.out.println(ans);
        }
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line;
		
		while ((line = br.readLine()) != null) {
			String[] numbers = line.split(" ");
			int sum = 0;
            int a = Integer.parseInt(numbers[0]);
            int b = Integer.parseInt(numbers[1]);
            sum = a + b;
            
            int ans = 1;
            while((sum /= 10) > 0){
            	ans++;
            }
            System.out.println(ans);
        }
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line; line while ((line = br.readLine()) != null) {
			String[] numbers = line.split(" ");
			int sum = 0;
            int a = Integer.parseInt(numbers[0]);
            int b = Integer.parseInt(numbers[1]);
            sum = a + b;
            
            int ans = 1;
            while((sum /= 10) > 0){
            	ans++;
            }
            System.out.println(ans);
        } (line = br.readLine()) != null (line = br.readLine()) line br.readLine() br.readLine br null {
			String[] numbers = line.split(" ");
			int sum = 0;
            int a = Integer.parseInt(numbers[0]);
            int b = Integer.parseInt(numbers[1]);
            sum = a + b;
            
            int ans = 1;
            while((sum /= 10) > 0){
            	ans++;
            }
            System.out.println(ans);
        } String[] numbers = line.split(" "); numbers line.split(" ") line.split line " " int sum = 0; sum 0 int a = Integer.parseInt(numbers[0]); a Integer.parseInt(numbers[0]) Integer.parseInt Integer numbers[0] numbers 0 int b = Integer.parseInt(numbers[1]); b Integer.parseInt(numbers[1]) Integer.parseInt Integer numbers[1] numbers 1 sum = a + b sum a + b a b int ans = 1; ans 1 while((sum /= 10) > 0){
            	ans++;
            } (sum /= 10) > 0 (sum /= 10) sum 10 0 {
            	ans++;
            } ans++ ans System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main{

	public static void main (String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line;
		
		while ((line = br.readLine()) != null) {
			String[] numbers = line.split(" ");
			int sum = 0;
            int a = Integer.parseInt(numbers[0]);
            int b = Integer.parseInt(numbers[1]);
            sum = a + b;
            
            int ans = 1;
            while((sum /= 10) > 0){
            	ans++;
            }
            System.out.println(ans);
        }
	}
} public class Main{

	public static void main (String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line;
		
		while ((line = br.readLine()) != null) {
			String[] numbers = line.split(" ");
			int sum = 0;
            int a = Integer.parseInt(numbers[0]);
            int b = Integer.parseInt(numbers[1]);
            sum = a + b;
            
            int ans = 1;
            while((sum /= 10) > 0){
            	ans++;
            }
            System.out.println(ans);
        }
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main{

	public static void main (String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line;
		
		while ((line = br.readLine()) != null) {
			String[] numbers = line.split(" ");
			int sum = 0;
            int a = Integer.parseInt(numbers[0]);
            int b = Integer.parseInt(numbers[1]);
            sum = a + b;
            
            int ans = 1;
            while((sum /= 10) > 0){
            	ans++;
            }
            System.out.println(ans);
        }
	}
}