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);
	}

}
/tmp/hf-datasets-cache/medium/datasets/42704881117311-config-parquet-and-info-qiankunmu-Project_CodeNet-896c9d36/hub/datasets--qiankunmu--Project_CodeNet_Python800_and_Java250/snapshots/c899fde44a77ba1cc14973ed3de064e4ff3aadc7/Project_CodeNet_Java250.tar.gz