import java.util.Scanner;

public class Main{
	public static void main(String[]args) {
		Scanner sc = new Scanner(System.in);

		while(sc.hasNext()) {
			int a = sc.nextInt();
			int b = sc.nextInt();
		int sum = a+b;
		int valLen = String.valueOf(sum).length();
		System.out.println(valLen);
		}

	}

} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[]args) {
		Scanner sc = new Scanner(System.in);

		while(sc.hasNext()) {
			int a = sc.nextInt();
			int b = sc.nextInt();
		int sum = a+b;
		int valLen = String.valueOf(sum).length();
		System.out.println(valLen);
		}

	}

} Main public static void main(String[]args) {
		Scanner sc = new Scanner(System.in);

		while(sc.hasNext()) {
			int a = sc.nextInt();
			int b = sc.nextInt();
		int sum = a+b;
		int valLen = String.valueOf(sum).length();
		System.out.println(valLen);
		}

	} main {
		Scanner sc = new Scanner(System.in);

		while(sc.hasNext()) {
			int a = sc.nextInt();
			int b = sc.nextInt();
		int sum = a+b;
		int valLen = String.valueOf(sum).length();
		System.out.println(valLen);
		}

	} 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 valLen = String.valueOf(sum).length();
		System.out.println(valLen);
		} sc.hasNext() sc.hasNext sc {
			int a = sc.nextInt();
			int b = sc.nextInt();
		int sum = a+b;
		int valLen = String.valueOf(sum).length();
		System.out.println(valLen);
		} 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 valLen = String.valueOf(sum).length(); valLen String.valueOf(sum).length() String.valueOf(sum).length String.valueOf(sum) String.valueOf String sum System.out.println(valLen) System.out.println System.out System System.out valLen String[]args args public class Main{
	public static void main(String[]args) {
		Scanner sc = new Scanner(System.in);

		while(sc.hasNext()) {
			int a = sc.nextInt();
			int b = sc.nextInt();
		int sum = a+b;
		int valLen = String.valueOf(sum).length();
		System.out.println(valLen);
		}

	}

} public class Main{
	public static void main(String[]args) {
		Scanner sc = new Scanner(System.in);

		while(sc.hasNext()) {
			int a = sc.nextInt();
			int b = sc.nextInt();
		int sum = a+b;
		int valLen = String.valueOf(sum).length();
		System.out.println(valLen);
		}

	}

} Main
import java.util.Scanner;

public class Main{
	public static void main(String[]args) {
		Scanner sc = new Scanner(System.in);

		while(sc.hasNext()) {
			int a = sc.nextInt();
			int b = sc.nextInt();
		int sum = a+b;
		int valLen = String.valueOf(sum).length();
		System.out.println(valLen);
		}

	}

}
