import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		@SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in);

		while (sc.hasNext()){

			int num1 = sc.nextInt();
			int num2 = sc.nextInt();

			int total = num1 + num2;
			String str = Integer.toString(total);

			System.out.println(str.length());

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

	public static void main(String[] args) {

		@SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in);

		while (sc.hasNext()){

			int num1 = sc.nextInt();
			int num2 = sc.nextInt();

			int total = num1 + num2;
			String str = Integer.toString(total);

			System.out.println(str.length());

		}
	}
} Main public static void main(String[] args) {

		@SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in);

		while (sc.hasNext()){

			int num1 = sc.nextInt();
			int num2 = sc.nextInt();

			int total = num1 + num2;
			String str = Integer.toString(total);

			System.out.println(str.length());

		}
	} main {

		@SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in);

		while (sc.hasNext()){

			int num1 = sc.nextInt();
			int num2 = sc.nextInt();

			int total = num1 + num2;
			String str = Integer.toString(total);

			System.out.println(str.length());

		}
	} @SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while (sc.hasNext()){

			int num1 = sc.nextInt();
			int num2 = sc.nextInt();

			int total = num1 + num2;
			String str = Integer.toString(total);

			System.out.println(str.length());

		} sc.hasNext() sc.hasNext sc {

			int num1 = sc.nextInt();
			int num2 = sc.nextInt();

			int total = num1 + num2;
			String str = Integer.toString(total);

			System.out.println(str.length());

		} int num1 = sc.nextInt(); num1 sc.nextInt() sc.nextInt sc int num2 = sc.nextInt(); num2 sc.nextInt() sc.nextInt sc int total = num1 + num2; total num1 + num2 num1 num2 String str = Integer.toString(total); str Integer.toString(total) Integer.toString Integer total System.out.println(str.length()) System.out.println System.out System System.out str.length() str.length str String[] args args public class Main {

	public static void main(String[] args) {

		@SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in);

		while (sc.hasNext()){

			int num1 = sc.nextInt();
			int num2 = sc.nextInt();

			int total = num1 + num2;
			String str = Integer.toString(total);

			System.out.println(str.length());

		}
	}
} public class Main {

	public static void main(String[] args) {

		@SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in);

		while (sc.hasNext()){

			int num1 = sc.nextInt();
			int num2 = sc.nextInt();

			int total = num1 + num2;
			String str = Integer.toString(total);

			System.out.println(str.length());

		}
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		@SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in);

		while (sc.hasNext()){

			int num1 = sc.nextInt();
			int num2 = sc.nextInt();

			int total = num1 + num2;
			String str = Integer.toString(total);

			System.out.println(str.length());

		}
	}
}