import java.util.*;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int a=sc.nextInt();
			int b=sc.nextInt();
			int x=a+b;
			String s=String.valueOf(x);
			System.out.println(s.length());
		}
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int a=sc.nextInt();
			int b=sc.nextInt();
			int x=a+b;
			String s=String.valueOf(x);
			System.out.println(s.length());
		}
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int a=sc.nextInt();
			int b=sc.nextInt();
			int x=a+b;
			String s=String.valueOf(x);
			System.out.println(s.length());
		}
	} main {
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int a=sc.nextInt();
			int b=sc.nextInt();
			int x=a+b;
			String s=String.valueOf(x);
			System.out.println(s.length());
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while(sc.hasNext()){
			int a=sc.nextInt();
			int b=sc.nextInt();
			int x=a+b;
			String s=String.valueOf(x);
			System.out.println(s.length());
		} sc.hasNext() sc.hasNext sc {
			int a=sc.nextInt();
			int b=sc.nextInt();
			int x=a+b;
			String s=String.valueOf(x);
			System.out.println(s.length());
		} int a=sc.nextInt(); a sc.nextInt() sc.nextInt sc int b=sc.nextInt(); b sc.nextInt() sc.nextInt sc int x=a+b; x a+b a b String s=String.valueOf(x); s String.valueOf(x) String.valueOf String x System.out.println(s.length()) System.out.println System.out System System.out s.length() s.length s String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int a=sc.nextInt();
			int b=sc.nextInt();
			int x=a+b;
			String s=String.valueOf(x);
			System.out.println(s.length());
		}
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int a=sc.nextInt();
			int b=sc.nextInt();
			int x=a+b;
			String s=String.valueOf(x);
			System.out.println(s.length());
		}
	}
} Main
import java.util.*;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int a=sc.nextInt();
			int b=sc.nextInt();
			int x=a+b;
			String s=String.valueOf(x);
			System.out.println(s.length());
		}
	}
}