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

public class Main{
	// main????????????
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		for(; ;){
			String oneline = br.readLine();
			if(oneline == null){
				break;
			}
			String[] line = oneline.split(" ");
			int data1 = Integer.parseInt(line[0]);
			int data2 = Integer.parseInt(line[1]);
			
			int digit = digitChk(data1, data2);
			
			System.out.println(digit);
		}
	}
	
	private static int digitChk(int a, int b){
		int sum = a+b;
		int digit = 0;	// digit
		
		for(; sum>0; digit++){
			sum /= 10;
		}
		
		return (digit);
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main{
	// main????????????
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		for(; ;){
			String oneline = br.readLine();
			if(oneline == null){
				break;
			}
			String[] line = oneline.split(" ");
			int data1 = Integer.parseInt(line[0]);
			int data2 = Integer.parseInt(line[1]);
			
			int digit = digitChk(data1, data2);
			
			System.out.println(digit);
		}
	}
	
	private static int digitChk(int a, int b){
		int sum = a+b;
		int digit = 0;	// digit
		
		for(; sum>0; digit++){
			sum /= 10;
		}
		
		return (digit);
	}

} Main // main????????????
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		for(; ;){
			String oneline = br.readLine();
			if(oneline == null){
				break;
			}
			String[] line = oneline.split(" ");
			int data1 = Integer.parseInt(line[0]);
			int data2 = Integer.parseInt(line[1]);
			
			int digit = digitChk(data1, data2);
			
			System.out.println(digit);
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		for(; ;){
			String oneline = br.readLine();
			if(oneline == null){
				break;
			}
			String[] line = oneline.split(" ");
			int data1 = Integer.parseInt(line[0]);
			int data2 = Integer.parseInt(line[1]);
			
			int digit = digitChk(data1, data2);
			
			System.out.println(digit);
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) for(; ;){
			String oneline = br.readLine();
			if(oneline == null){
				break;
			}
			String[] line = oneline.split(" ");
			int data1 = Integer.parseInt(line[0]);
			int data2 = Integer.parseInt(line[1]);
			
			int digit = digitChk(data1, data2);
			
			System.out.println(digit);
		} ; {
			String oneline = br.readLine();
			if(oneline == null){
				break;
			}
			String[] line = oneline.split(" ");
			int data1 = Integer.parseInt(line[0]);
			int data2 = Integer.parseInt(line[1]);
			
			int digit = digitChk(data1, data2);
			
			System.out.println(digit);
		} {
			String oneline = br.readLine();
			if(oneline == null){
				break;
			}
			String[] line = oneline.split(" ");
			int data1 = Integer.parseInt(line[0]);
			int data2 = Integer.parseInt(line[1]);
			
			int digit = digitChk(data1, data2);
			
			System.out.println(digit);
		} String oneline = br.readLine(); oneline br.readLine() br.readLine br if(oneline == null){
				break;
			} oneline == null oneline null {
				break;
			} break; String[] line = oneline.split(" "); line oneline.split(" ") oneline.split oneline " " int data1 = Integer.parseInt(line[0]); data1 Integer.parseInt(line[0]) Integer.parseInt Integer line[0] line 0 int data2 = Integer.parseInt(line[1]); data2 Integer.parseInt(line[1]) Integer.parseInt Integer line[1] line 1 int digit = digitChk(data1, data2); digit digitChk(data1, data2) digitChk data1 data2 System.out.println(digit) System.out.println System.out System System.out digit String[] args args private static int digitChk(int a, int b){
		int sum = a+b;
		int digit = 0;	// digit
		
		for(; sum>0; digit++){
			sum /= 10;
		}
		
		return (digit);
	} digitChk {
		int sum = a+b;
		int digit = 0;	// digit
		
		for(; sum>0; digit++){
			sum /= 10;
		}
		
		return (digit);
	} int sum = a+b; sum a+b a b int digit = 0; digit 0 for(; sum>0; digit++){
			sum /= 10;
		} ; sum>0 sum 0 digit++ digit++ digit {
			sum /= 10;
		} {
			sum /= 10;
		} sum /= 10 sum 10 return (digit); (digit) int a a int b b public class Main{
	// main????????????
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		for(; ;){
			String oneline = br.readLine();
			if(oneline == null){
				break;
			}
			String[] line = oneline.split(" ");
			int data1 = Integer.parseInt(line[0]);
			int data2 = Integer.parseInt(line[1]);
			
			int digit = digitChk(data1, data2);
			
			System.out.println(digit);
		}
	}
	
	private static int digitChk(int a, int b){
		int sum = a+b;
		int digit = 0;	// digit
		
		for(; sum>0; digit++){
			sum /= 10;
		}
		
		return (digit);
	}

} public class Main{
	// main????????????
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		for(; ;){
			String oneline = br.readLine();
			if(oneline == null){
				break;
			}
			String[] line = oneline.split(" ");
			int data1 = Integer.parseInt(line[0]);
			int data2 = Integer.parseInt(line[1]);
			
			int digit = digitChk(data1, data2);
			
			System.out.println(digit);
		}
	}
	
	private static int digitChk(int a, int b){
		int sum = a+b;
		int digit = 0;	// digit
		
		for(; sum>0; digit++){
			sum /= 10;
		}
		
		return (digit);
	}

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

public class Main{
	// main????????????
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		for(; ;){
			String oneline = br.readLine();
			if(oneline == null){
				break;
			}
			String[] line = oneline.split(" ");
			int data1 = Integer.parseInt(line[0]);
			int data2 = Integer.parseInt(line[1]);
			
			int digit = digitChk(data1, data2);
			
			System.out.println(digit);
		}
	}
	
	private static int digitChk(int a, int b){
		int sum = a+b;
		int digit = 0;	// digit
		
		for(; sum>0; digit++){
			sum /= 10;
		}
		
		return (digit);
	}

}