import java.util.Scanner;
public class Main {
	public static void main(String[] a) {
		Scanner s=new Scanner(System.in);
		int x,y,z,i;
		while(s.hasNext()){
			x=s.nextInt();
			y=s.nextInt();
		z=x+y;
		for(i=1;10<=z;i++){
			z=z/10;
		}
		System.out.println(i);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] a) {
		Scanner s=new Scanner(System.in);
		int x,y,z,i;
		while(s.hasNext()){
			x=s.nextInt();
			y=s.nextInt();
		z=x+y;
		for(i=1;10<=z;i++){
			z=z/10;
		}
		System.out.println(i);
		}
	}
} Main public static void main(String[] a) {
		Scanner s=new Scanner(System.in);
		int x,y,z,i;
		while(s.hasNext()){
			x=s.nextInt();
			y=s.nextInt();
		z=x+y;
		for(i=1;10<=z;i++){
			z=z/10;
		}
		System.out.println(i);
		}
	} main {
		Scanner s=new Scanner(System.in);
		int x,y,z,i;
		while(s.hasNext()){
			x=s.nextInt();
			y=s.nextInt();
		z=x+y;
		for(i=1;10<=z;i++){
			z=z/10;
		}
		System.out.println(i);
		}
	} Scanner s=new Scanner(System.in); s new Scanner(System.in) int x x y y z z i; i while(s.hasNext()){
			x=s.nextInt();
			y=s.nextInt();
		z=x+y;
		for(i=1;10<=z;i++){
			z=z/10;
		}
		System.out.println(i);
		} s.hasNext() s.hasNext s {
			x=s.nextInt();
			y=s.nextInt();
		z=x+y;
		for(i=1;10<=z;i++){
			z=z/10;
		}
		System.out.println(i);
		} x=s.nextInt() x s.nextInt() s.nextInt s y=s.nextInt() y s.nextInt() s.nextInt s z=x+y z x+y x y for(i=1;10<=z;i++){
			z=z/10;
		} i=1; i=1 i 1 10<=z 10 z i++ i++ i {
			z=z/10;
		} {
			z=z/10;
		} z=z/10 z z/10 z 10 System.out.println(i) System.out.println System.out System System.out i String[] a a public class Main {
	public static void main(String[] a) {
		Scanner s=new Scanner(System.in);
		int x,y,z,i;
		while(s.hasNext()){
			x=s.nextInt();
			y=s.nextInt();
		z=x+y;
		for(i=1;10<=z;i++){
			z=z/10;
		}
		System.out.println(i);
		}
	}
} public class Main {
	public static void main(String[] a) {
		Scanner s=new Scanner(System.in);
		int x,y,z,i;
		while(s.hasNext()){
			x=s.nextInt();
			y=s.nextInt();
		z=x+y;
		for(i=1;10<=z;i++){
			z=z/10;
		}
		System.out.println(i);
		}
	}
} Main
import java.util.Scanner;
public class Main {
	public static void main(String[] a) {
		Scanner s=new Scanner(System.in);
		int x,y,z,i;
		while(s.hasNext()){
			x=s.nextInt();
			y=s.nextInt();
		z=x+y;
		for(i=1;10<=z;i++){
			z=z/10;
		}
		System.out.println(i);
		}
	}
}