import java.util.*;

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

class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			System.out.println(Integer.toString(sc.nextInt() + sc.nextInt()).length());
		}
	}
}