import java.io.IOException;
import java.util.Scanner;
public class Main {

	public static void main(String[] args) throws IOException{
		Scanner sc = new Scanner(System.in);
		int a,b;
		int length;
		while(sc.hasNext()){
			a = sc.nextInt();
			b = sc.nextInt();
			length = String.valueOf((a+b)).length();
			System.out.println(length);;
		}
		
	}

} import java.io.IOException; IOException java.io import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) throws IOException{
		Scanner sc = new Scanner(System.in);
		int a,b;
		int length;
		while(sc.hasNext()){
			a = sc.nextInt();
			b = sc.nextInt();
			length = String.valueOf((a+b)).length();
			System.out.println(length);;
		}
		
	}

} Main public static void main(String[] args) throws IOException{
		Scanner sc = new Scanner(System.in);
		int a,b;
		int length;
		while(sc.hasNext()){
			a = sc.nextInt();
			b = sc.nextInt();
			length = String.valueOf((a+b)).length();
			System.out.println(length);;
		}
		
	} main {
		Scanner sc = new Scanner(System.in);
		int a,b;
		int length;
		while(sc.hasNext()){
			a = sc.nextInt();
			b = sc.nextInt();
			length = String.valueOf((a+b)).length();
			System.out.println(length);;
		}
		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a a b; b int length; length while(sc.hasNext()){
			a = sc.nextInt();
			b = sc.nextInt();
			length = String.valueOf((a+b)).length();
			System.out.println(length);;
		} sc.hasNext() sc.hasNext sc {
			a = sc.nextInt();
			b = sc.nextInt();
			length = String.valueOf((a+b)).length();
			System.out.println(length);;
		} a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt() b sc.nextInt() sc.nextInt sc length = String.valueOf((a+b)).length() length String.valueOf((a+b)).length() String.valueOf((a+b)).length String.valueOf((a+b)) String.valueOf String (a+b) a b System.out.println(length) System.out.println System.out System System.out length String[] args args public class Main {

	public static void main(String[] args) throws IOException{
		Scanner sc = new Scanner(System.in);
		int a,b;
		int length;
		while(sc.hasNext()){
			a = sc.nextInt();
			b = sc.nextInt();
			length = String.valueOf((a+b)).length();
			System.out.println(length);;
		}
		
	}

} public class Main {

	public static void main(String[] args) throws IOException{
		Scanner sc = new Scanner(System.in);
		int a,b;
		int length;
		while(sc.hasNext()){
			a = sc.nextInt();
			b = sc.nextInt();
			length = String.valueOf((a+b)).length();
			System.out.println(length);;
		}
		
	}

} Main
import java.io.IOException;
import java.util.Scanner;
public class Main {

	public static void main(String[] args) throws IOException{
		Scanner sc = new Scanner(System.in);
		int a,b;
		int length;
		while(sc.hasNext()){
			a = sc.nextInt();
			b = sc.nextInt();
			length = String.valueOf((a+b)).length();
			System.out.println(length);;
		}
		
	}

}