import java.io.*;
import java.util.*;
class Main{
    public static void main(String[] args)throws IOException{
	String a;
	int b;
	InputStreamReader isr=new InputStreamReader(System.in);
	BufferedReader br =new BufferedReader(isr);
	a= br.readLine();
	while(a!=null){
	    StringTokenizer st = new StringTokenizer(a);
	    b=Integer.parseInt(st.nextToken())+Integer.parseInt(st.nextToken());
	    b=(int)Math.log10(b)+1;
	    System.out.println(b);
	    a=br.readLine();
	    }
}
} import java.io.*; io.* java import java.util.*; util.* java class Main{
    public static void main(String[] args)throws IOException{
	String a;
	int b;
	InputStreamReader isr=new InputStreamReader(System.in);
	BufferedReader br =new BufferedReader(isr);
	a= br.readLine();
	while(a!=null){
	    StringTokenizer st = new StringTokenizer(a);
	    b=Integer.parseInt(st.nextToken())+Integer.parseInt(st.nextToken());
	    b=(int)Math.log10(b)+1;
	    System.out.println(b);
	    a=br.readLine();
	    }
}
} Main public static void main(String[] args)throws IOException{
	String a;
	int b;
	InputStreamReader isr=new InputStreamReader(System.in);
	BufferedReader br =new BufferedReader(isr);
	a= br.readLine();
	while(a!=null){
	    StringTokenizer st = new StringTokenizer(a);
	    b=Integer.parseInt(st.nextToken())+Integer.parseInt(st.nextToken());
	    b=(int)Math.log10(b)+1;
	    System.out.println(b);
	    a=br.readLine();
	    }
} main {
	String a;
	int b;
	InputStreamReader isr=new InputStreamReader(System.in);
	BufferedReader br =new BufferedReader(isr);
	a= br.readLine();
	while(a!=null){
	    StringTokenizer st = new StringTokenizer(a);
	    b=Integer.parseInt(st.nextToken())+Integer.parseInt(st.nextToken());
	    b=(int)Math.log10(b)+1;
	    System.out.println(b);
	    a=br.readLine();
	    }
} String a; a int b; b InputStreamReader isr=new InputStreamReader(System.in); isr new InputStreamReader(System.in) BufferedReader br =new BufferedReader(isr); br new BufferedReader(isr) a= br.readLine() a br.readLine() br.readLine br while(a!=null){
	    StringTokenizer st = new StringTokenizer(a);
	    b=Integer.parseInt(st.nextToken())+Integer.parseInt(st.nextToken());
	    b=(int)Math.log10(b)+1;
	    System.out.println(b);
	    a=br.readLine();
	    } a!=null a null {
	    StringTokenizer st = new StringTokenizer(a);
	    b=Integer.parseInt(st.nextToken())+Integer.parseInt(st.nextToken());
	    b=(int)Math.log10(b)+1;
	    System.out.println(b);
	    a=br.readLine();
	    } StringTokenizer st = new StringTokenizer(a); st new StringTokenizer(a) b=Integer.parseInt(st.nextToken())+Integer.parseInt(st.nextToken()) b Integer.parseInt(st.nextToken())+Integer.parseInt(st.nextToken()) Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st b=(int)Math.log10(b)+1 b (int)Math.log10(b)+1 (int)Math.log10(b) Math.log10 Math b 1 System.out.println(b) System.out.println System.out System System.out b a=br.readLine() a br.readLine() br.readLine br String[] args args
import java.io.*;
import java.util.*;
class Main{
    public static void main(String[] args)throws IOException{
	String a;
	int b;
	InputStreamReader isr=new InputStreamReader(System.in);
	BufferedReader br =new BufferedReader(isr);
	a= br.readLine();
	while(a!=null){
	    StringTokenizer st = new StringTokenizer(a);
	    b=Integer.parseInt(st.nextToken())+Integer.parseInt(st.nextToken());
	    b=(int)Math.log10(b)+1;
	    System.out.println(b);
	    a=br.readLine();
	    }
}
}