import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner scanner=new Scanner(System.in);
		int a,b;
		for(;scanner.hasNextInt();){
			a=scanner.nextInt();b=scanner.nextInt();
			System.out.println((int)Math.floor(Math.log10(a+b)+1));
		}
	}

} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Scanner scanner=new Scanner(System.in);
		int a,b;
		for(;scanner.hasNextInt();){
			a=scanner.nextInt();b=scanner.nextInt();
			System.out.println((int)Math.floor(Math.log10(a+b)+1));
		}
	}

} Main public static void main(String[] args) {
		Scanner scanner=new Scanner(System.in);
		int a,b;
		for(;scanner.hasNextInt();){
			a=scanner.nextInt();b=scanner.nextInt();
			System.out.println((int)Math.floor(Math.log10(a+b)+1));
		}
	} main {
		Scanner scanner=new Scanner(System.in);
		int a,b;
		for(;scanner.hasNextInt();){
			a=scanner.nextInt();b=scanner.nextInt();
			System.out.println((int)Math.floor(Math.log10(a+b)+1));
		}
	} Scanner scanner=new Scanner(System.in); scanner new Scanner(System.in) int a a b; b for(;scanner.hasNextInt();){
			a=scanner.nextInt();b=scanner.nextInt();
			System.out.println((int)Math.floor(Math.log10(a+b)+1));
		} ; scanner.hasNextInt() scanner.hasNextInt scanner {
			a=scanner.nextInt();b=scanner.nextInt();
			System.out.println((int)Math.floor(Math.log10(a+b)+1));
		} {
			a=scanner.nextInt();b=scanner.nextInt();
			System.out.println((int)Math.floor(Math.log10(a+b)+1));
		} a=scanner.nextInt() a scanner.nextInt() scanner.nextInt scanner b=scanner.nextInt() b scanner.nextInt() scanner.nextInt scanner System.out.println((int)Math.floor(Math.log10(a+b)+1)) System.out.println System.out System System.out (int)Math.floor(Math.log10(a+b)+1) Math.floor Math Math.log10(a+b)+1 Math.log10(a+b) Math.log10 Math a+b a b 1 String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scanner=new Scanner(System.in);
		int a,b;
		for(;scanner.hasNextInt();){
			a=scanner.nextInt();b=scanner.nextInt();
			System.out.println((int)Math.floor(Math.log10(a+b)+1));
		}
	}

} public class Main {
	public static void main(String[] args) {
		Scanner scanner=new Scanner(System.in);
		int a,b;
		for(;scanner.hasNextInt();){
			a=scanner.nextInt();b=scanner.nextInt();
			System.out.println((int)Math.floor(Math.log10(a+b)+1));
		}
	}

} Main
import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner scanner=new Scanner(System.in);
		int a,b;
		for(;scanner.hasNextInt();){
			a=scanner.nextInt();b=scanner.nextInt();
			System.out.println((int)Math.floor(Math.log10(a+b)+1));
		}
	}

}