import java.util.Scanner;

public class Main {
	Scanner sc = new Scanner(System.in);
	void run(){
		for(;;){
			if(!sc.hasNextInt()) break;
			int a = sc.nextInt() + sc.nextInt();
			System.out.println(1+(int)Math.log10(a));
		}
		
	}
	public static void main(String[] args){
		Main m = new Main();
		m.run();
		
	}
} import java.util.Scanner; Scanner java.util public class Main {
	Scanner sc = new Scanner(System.in);
	void run(){
		for(;;){
			if(!sc.hasNextInt()) break;
			int a = sc.nextInt() + sc.nextInt();
			System.out.println(1+(int)Math.log10(a));
		}
		
	}
	public static void main(String[] args){
		Main m = new Main();
		m.run();
		
	}
} Main Scanner sc = new Scanner(System.in); sc new Scanner(System.in) void run(){
		for(;;){
			if(!sc.hasNextInt()) break;
			int a = sc.nextInt() + sc.nextInt();
			System.out.println(1+(int)Math.log10(a));
		}
		
	} run {
		for(;;){
			if(!sc.hasNextInt()) break;
			int a = sc.nextInt() + sc.nextInt();
			System.out.println(1+(int)Math.log10(a));
		}
		
	} for(;;){
			if(!sc.hasNextInt()) break;
			int a = sc.nextInt() + sc.nextInt();
			System.out.println(1+(int)Math.log10(a));
		} ; {
			if(!sc.hasNextInt()) break;
			int a = sc.nextInt() + sc.nextInt();
			System.out.println(1+(int)Math.log10(a));
		} {
			if(!sc.hasNextInt()) break;
			int a = sc.nextInt() + sc.nextInt();
			System.out.println(1+(int)Math.log10(a));
		} if(!sc.hasNextInt()) break; !sc.hasNextInt() sc.hasNextInt() sc.hasNextInt sc break; int a = sc.nextInt() + sc.nextInt(); a sc.nextInt() + sc.nextInt() sc.nextInt() sc.nextInt sc sc.nextInt() sc.nextInt sc System.out.println(1+(int)Math.log10(a)) System.out.println System.out System System.out 1+(int)Math.log10(a) 1 (int)Math.log10(a) Math.log10 Math a public static void main(String[] args){
		Main m = new Main();
		m.run();
		
	} main {
		Main m = new Main();
		m.run();
		
	} Main m = new Main(); m new Main() m.run() m.run m String[] args args public class Main {
	Scanner sc = new Scanner(System.in);
	void run(){
		for(;;){
			if(!sc.hasNextInt()) break;
			int a = sc.nextInt() + sc.nextInt();
			System.out.println(1+(int)Math.log10(a));
		}
		
	}
	public static void main(String[] args){
		Main m = new Main();
		m.run();
		
	}
} public class Main {
	Scanner sc = new Scanner(System.in);
	void run(){
		for(;;){
			if(!sc.hasNextInt()) break;
			int a = sc.nextInt() + sc.nextInt();
			System.out.println(1+(int)Math.log10(a));
		}
		
	}
	public static void main(String[] args){
		Main m = new Main();
		m.run();
		
	}
} Main
import java.util.Scanner;

public class Main {
	Scanner sc = new Scanner(System.in);
	void run(){
		for(;;){
			if(!sc.hasNextInt()) break;
			int a = sc.nextInt() + sc.nextInt();
			System.out.println(1+(int)Math.log10(a));
		}
		
	}
	public static void main(String[] args){
		Main m = new Main();
		m.run();
		
	}
}