import java.util.Scanner;

public class Main{
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int a,b,i,c=0;
		while (stdIn.hasNext()) {
			a = stdIn.nextInt();
			b = stdIn.nextInt();
			c=a+b;
			for(i=0;0<c;i++){
				c=c/10;
			}
			System.out.println(i);
	}
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int a,b,i,c=0;
		while (stdIn.hasNext()) {
			a = stdIn.nextInt();
			b = stdIn.nextInt();
			c=a+b;
			for(i=0;0<c;i++){
				c=c/10;
			}
			System.out.println(i);
	}
	}
} Main public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int a,b,i,c=0;
		while (stdIn.hasNext()) {
			a = stdIn.nextInt();
			b = stdIn.nextInt();
			c=a+b;
			for(i=0;0<c;i++){
				c=c/10;
			}
			System.out.println(i);
	}
	} main {
		Scanner stdIn = new Scanner(System.in);
		int a,b,i,c=0;
		while (stdIn.hasNext()) {
			a = stdIn.nextInt();
			b = stdIn.nextInt();
			c=a+b;
			for(i=0;0<c;i++){
				c=c/10;
			}
			System.out.println(i);
	}
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int a a b b i i c=0; c 0 while (stdIn.hasNext()) {
			a = stdIn.nextInt();
			b = stdIn.nextInt();
			c=a+b;
			for(i=0;0<c;i++){
				c=c/10;
			}
			System.out.println(i);
	} stdIn.hasNext() stdIn.hasNext stdIn {
			a = stdIn.nextInt();
			b = stdIn.nextInt();
			c=a+b;
			for(i=0;0<c;i++){
				c=c/10;
			}
			System.out.println(i);
	} a = stdIn.nextInt() a stdIn.nextInt() stdIn.nextInt stdIn b = stdIn.nextInt() b stdIn.nextInt() stdIn.nextInt stdIn c=a+b c a+b a b for(i=0;0<c;i++){
				c=c/10;
			} i=0; i=0 i 0 0<c 0 c i++ i++ i {
				c=c/10;
			} {
				c=c/10;
			} c=c/10 c c/10 c 10 System.out.println(i) System.out.println System.out System System.out i String[] args args public class Main{
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int a,b,i,c=0;
		while (stdIn.hasNext()) {
			a = stdIn.nextInt();
			b = stdIn.nextInt();
			c=a+b;
			for(i=0;0<c;i++){
				c=c/10;
			}
			System.out.println(i);
	}
	}
} public class Main{
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int a,b,i,c=0;
		while (stdIn.hasNext()) {
			a = stdIn.nextInt();
			b = stdIn.nextInt();
			c=a+b;
			for(i=0;0<c;i++){
				c=c/10;
			}
			System.out.println(i);
	}
	}
} Main
import java.util.Scanner;

public class Main{
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int a,b,i,c=0;
		while (stdIn.hasNext()) {
			a = stdIn.nextInt();
			b = stdIn.nextInt();
			c=a+b;
			for(i=0;0<c;i++){
				c=c/10;
			}
			System.out.println(i);
	}
	}
}