import java.util.Arrays;
import java.util.Scanner;

class Main{
    public static void main(String[] x){
		byte[] k = new byte[200];
		try{
			Scanner sc = new Scanner(System.in);
			for(byte i=-127;i<73;i++){
				String s = sc.nextLine();
				if(s==null||s.equals("")){
					k[i+127]=0;
					break;
				}
				k[i+127] = dig(Integer.parseInt((s.split(" ",0))[0])+Integer.parseInt((s.split(" ",0))[1]));
			}
		}catch(Exception e){}
		for(byte i=-127;i<73;i++){
			if(k[i+127]>0){System.out.println(k[i+127]);}
			else{break;}
		}
    }
	public static byte dig(int a){
		byte d = 0;
		while(true){
			if(a>=10){
				d++;
				a/=10;
			}
			else{return (byte)((int)d+1);}
		}
	}
}
/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