import java.io.*;

class Main{
	public static void main(String[] args)throws IOException{
		int a,b,sum,digits;
		int i=1;
		String str;
		String num[]=new String[2];
		BufferedReader in =new BufferedReader(new InputStreamReader(System.in));
		while(i<=200){
			if((str=in.readLine())==null)
				break;
			digits=1;
			num=str.split(" ",0);
			a=Integer.parseInt(num[0]);
			b=Integer.parseInt(num[1]);
			sum=a+b;
			while((sum=sum/10)!=0)
				digits++;
			System.out.printf(digits+"\n");
			i++;
		}
	}

} import java.io.*; io.* java class Main{
	public static void main(String[] args)throws IOException{
		int a,b,sum,digits;
		int i=1;
		String str;
		String num[]=new String[2];
		BufferedReader in =new BufferedReader(new InputStreamReader(System.in));
		while(i<=200){
			if((str=in.readLine())==null)
				break;
			digits=1;
			num=str.split(" ",0);
			a=Integer.parseInt(num[0]);
			b=Integer.parseInt(num[1]);
			sum=a+b;
			while((sum=sum/10)!=0)
				digits++;
			System.out.printf(digits+"\n");
			i++;
		}
	}

} Main public static void main(String[] args)throws IOException{
		int a,b,sum,digits;
		int i=1;
		String str;
		String num[]=new String[2];
		BufferedReader in =new BufferedReader(new InputStreamReader(System.in));
		while(i<=200){
			if((str=in.readLine())==null)
				break;
			digits=1;
			num=str.split(" ",0);
			a=Integer.parseInt(num[0]);
			b=Integer.parseInt(num[1]);
			sum=a+b;
			while((sum=sum/10)!=0)
				digits++;
			System.out.printf(digits+"\n");
			i++;
		}
	} main {
		int a,b,sum,digits;
		int i=1;
		String str;
		String num[]=new String[2];
		BufferedReader in =new BufferedReader(new InputStreamReader(System.in));
		while(i<=200){
			if((str=in.readLine())==null)
				break;
			digits=1;
			num=str.split(" ",0);
			a=Integer.parseInt(num[0]);
			b=Integer.parseInt(num[1]);
			sum=a+b;
			while((sum=sum/10)!=0)
				digits++;
			System.out.printf(digits+"\n");
			i++;
		}
	} int a a b b sum sum digits; digits int i=1; i 1 String str; str String num[]=new String[2]; num new String[2] 2 BufferedReader in =new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) while(i<=200){
			if((str=in.readLine())==null)
				break;
			digits=1;
			num=str.split(" ",0);
			a=Integer.parseInt(num[0]);
			b=Integer.parseInt(num[1]);
			sum=a+b;
			while((sum=sum/10)!=0)
				digits++;
			System.out.printf(digits+"\n");
			i++;
		} i<=200 i 200 {
			if((str=in.readLine())==null)
				break;
			digits=1;
			num=str.split(" ",0);
			a=Integer.parseInt(num[0]);
			b=Integer.parseInt(num[1]);
			sum=a+b;
			while((sum=sum/10)!=0)
				digits++;
			System.out.printf(digits+"\n");
			i++;
		} if((str=in.readLine())==null)
				break; (str=in.readLine())==null (str=in.readLine()) str in.readLine() in.readLine in null break; digits=1 digits 1 num=str.split(" ",0) num str.split(" ",0) str.split str " " 0 a=Integer.parseInt(num[0]) a Integer.parseInt(num[0]) Integer.parseInt Integer num[0] num 0 b=Integer.parseInt(num[1]) b Integer.parseInt(num[1]) Integer.parseInt Integer num[1] num 1 sum=a+b sum a+b a b while((sum=sum/10)!=0)
				digits++; (sum=sum/10)!=0 (sum=sum/10) sum sum/10 sum 10 0 digits++ digits System.out.printf(digits+"\n") System.out.printf System.out System System.out digits+"\n" digits "\n" i++ i String[] args args
import java.io.*;

class Main{
	public static void main(String[] args)throws IOException{
		int a,b,sum,digits;
		int i=1;
		String str;
		String num[]=new String[2];
		BufferedReader in =new BufferedReader(new InputStreamReader(System.in));
		while(i<=200){
			if((str=in.readLine())==null)
				break;
			digits=1;
			num=str.split(" ",0);
			a=Integer.parseInt(num[0]);
			b=Integer.parseInt(num[1]);
			sum=a+b;
			while((sum=sum/10)!=0)
				digits++;
			System.out.printf(digits+"\n");
			i++;
		}
	}

}