import java.io.*;

public class Main{
	public static void main(String[] args)throws IOException{
		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
		while(true){
			String s=reader.readLine();
			if(s==null)System.exit(0);
			String[] t=s.split(" ");
			int a,b;
			a=Integer.parseInt(t[0]);
			b=Integer.parseInt(t[1]);
			int sum=a+b;
			int co=0;
			while(sum>0){
				co++;
				sum/=10;
			}
			System.out.println(co);
		}
	
	}
} import java.io.*; io.* java public class Main{
	public static void main(String[] args)throws IOException{
		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
		while(true){
			String s=reader.readLine();
			if(s==null)System.exit(0);
			String[] t=s.split(" ");
			int a,b;
			a=Integer.parseInt(t[0]);
			b=Integer.parseInt(t[1]);
			int sum=a+b;
			int co=0;
			while(sum>0){
				co++;
				sum/=10;
			}
			System.out.println(co);
		}
	
	}
} Main public static void main(String[] args)throws IOException{
		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
		while(true){
			String s=reader.readLine();
			if(s==null)System.exit(0);
			String[] t=s.split(" ");
			int a,b;
			a=Integer.parseInt(t[0]);
			b=Integer.parseInt(t[1]);
			int sum=a+b;
			int co=0;
			while(sum>0){
				co++;
				sum/=10;
			}
			System.out.println(co);
		}
	
	} main {
		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
		while(true){
			String s=reader.readLine();
			if(s==null)System.exit(0);
			String[] t=s.split(" ");
			int a,b;
			a=Integer.parseInt(t[0]);
			b=Integer.parseInt(t[1]);
			int sum=a+b;
			int co=0;
			while(sum>0){
				co++;
				sum/=10;
			}
			System.out.println(co);
		}
	
	} BufferedReader reader=new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) while(true){
			String s=reader.readLine();
			if(s==null)System.exit(0);
			String[] t=s.split(" ");
			int a,b;
			a=Integer.parseInt(t[0]);
			b=Integer.parseInt(t[1]);
			int sum=a+b;
			int co=0;
			while(sum>0){
				co++;
				sum/=10;
			}
			System.out.println(co);
		} true {
			String s=reader.readLine();
			if(s==null)System.exit(0);
			String[] t=s.split(" ");
			int a,b;
			a=Integer.parseInt(t[0]);
			b=Integer.parseInt(t[1]);
			int sum=a+b;
			int co=0;
			while(sum>0){
				co++;
				sum/=10;
			}
			System.out.println(co);
		} String s=reader.readLine(); s reader.readLine() reader.readLine reader if(s==null)System.exit(0); s==null s null System.exit(0) System.exit System 0 String[] t=s.split(" "); t s.split(" ") s.split s " " int a a b; b a=Integer.parseInt(t[0]) a Integer.parseInt(t[0]) Integer.parseInt Integer t[0] t 0 b=Integer.parseInt(t[1]) b Integer.parseInt(t[1]) Integer.parseInt Integer t[1] t 1 int sum=a+b; sum a+b a b int co=0; co 0 while(sum>0){
				co++;
				sum/=10;
			} sum>0 sum 0 {
				co++;
				sum/=10;
			} co++ co sum/=10 sum 10 System.out.println(co) System.out.println System.out System System.out co String[] args args public class Main{
	public static void main(String[] args)throws IOException{
		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
		while(true){
			String s=reader.readLine();
			if(s==null)System.exit(0);
			String[] t=s.split(" ");
			int a,b;
			a=Integer.parseInt(t[0]);
			b=Integer.parseInt(t[1]);
			int sum=a+b;
			int co=0;
			while(sum>0){
				co++;
				sum/=10;
			}
			System.out.println(co);
		}
	
	}
} public class Main{
	public static void main(String[] args)throws IOException{
		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
		while(true){
			String s=reader.readLine();
			if(s==null)System.exit(0);
			String[] t=s.split(" ");
			int a,b;
			a=Integer.parseInt(t[0]);
			b=Integer.parseInt(t[1]);
			int sum=a+b;
			int co=0;
			while(sum>0){
				co++;
				sum/=10;
			}
			System.out.println(co);
		}
	
	}
} Main
import java.io.*;

public class Main{
	public static void main(String[] args)throws IOException{
		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
		while(true){
			String s=reader.readLine();
			if(s==null)System.exit(0);
			String[] t=s.split(" ");
			int a,b;
			a=Integer.parseInt(t[0]);
			b=Integer.parseInt(t[1]);
			int sum=a+b;
			int co=0;
			while(sum>0){
				co++;
				sum/=10;
			}
			System.out.println(co);
		}
	
	}
}