import java.util.*;
public class Main {

	public void doIt(){
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int a = sc.nextInt();
			int b = sc.nextInt();
			int sum = a + b;
			int digit = Integer.toString(sum).length();
			System.out.println(digit);
		}

	}
	public static void main(String[] args) {
		Main obj = new Main();
		obj.doIt();

	}

} import java.util.*; util.* java public class Main {

	public void doIt(){
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int a = sc.nextInt();
			int b = sc.nextInt();
			int sum = a + b;
			int digit = Integer.toString(sum).length();
			System.out.println(digit);
		}

	}
	public static void main(String[] args) {
		Main obj = new Main();
		obj.doIt();

	}

} Main public void doIt(){
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int a = sc.nextInt();
			int b = sc.nextInt();
			int sum = a + b;
			int digit = Integer.toString(sum).length();
			System.out.println(digit);
		}

	} doIt {
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int a = sc.nextInt();
			int b = sc.nextInt();
			int sum = a + b;
			int digit = Integer.toString(sum).length();
			System.out.println(digit);
		}

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while(sc.hasNext()){
			int a = sc.nextInt();
			int b = sc.nextInt();
			int sum = a + b;
			int digit = Integer.toString(sum).length();
			System.out.println(digit);
		} sc.hasNext() sc.hasNext sc {
			int a = sc.nextInt();
			int b = sc.nextInt();
			int sum = a + b;
			int digit = Integer.toString(sum).length();
			System.out.println(digit);
		} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int sum = a + b; sum a + b a b int digit = Integer.toString(sum).length(); digit Integer.toString(sum).length() Integer.toString(sum).length Integer.toString(sum) Integer.toString Integer sum System.out.println(digit) System.out.println System.out System System.out digit public static void main(String[] args) {
		Main obj = new Main();
		obj.doIt();

	} main {
		Main obj = new Main();
		obj.doIt();

	} Main obj = new Main(); obj new Main() obj.doIt() obj.doIt obj String[] args args public class Main {

	public void doIt(){
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int a = sc.nextInt();
			int b = sc.nextInt();
			int sum = a + b;
			int digit = Integer.toString(sum).length();
			System.out.println(digit);
		}

	}
	public static void main(String[] args) {
		Main obj = new Main();
		obj.doIt();

	}

} public class Main {

	public void doIt(){
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int a = sc.nextInt();
			int b = sc.nextInt();
			int sum = a + b;
			int digit = Integer.toString(sum).length();
			System.out.println(digit);
		}

	}
	public static void main(String[] args) {
		Main obj = new Main();
		obj.doIt();

	}

} Main
import java.util.*;
public class Main {

	public void doIt(){
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int a = sc.nextInt();
			int b = sc.nextInt();
			int sum = a + b;
			int digit = Integer.toString(sum).length();
			System.out.println(digit);
		}

	}
	public static void main(String[] args) {
		Main obj = new Main();
		obj.doIt();

	}

}