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 a = sc.nextInt();
			int b = sc.nextInt();

			int sum = a + b;

			String checkSumLength = String.valueOf(sum);

			System.out.println(checkSumLength.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 a = sc.nextInt();
			int b = sc.nextInt();

			int sum = a + b;

			String checkSumLength = String.valueOf(sum);

			System.out.println(checkSumLength.length());
		}
	}

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

		while (sc.hasNext()) {
			int a = sc.nextInt();
			int b = sc.nextInt();

			int sum = a + b;

			String checkSumLength = String.valueOf(sum);

			System.out.println(checkSumLength.length());
		}
	} main {
		@SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in);

		while (sc.hasNext()) {
			int a = sc.nextInt();
			int b = sc.nextInt();

			int sum = a + b;

			String checkSumLength = String.valueOf(sum);

			System.out.println(checkSumLength.length());
		}
	} @SuppressWarnings("resource")
		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;

			String checkSumLength = String.valueOf(sum);

			System.out.println(checkSumLength.length());
		} sc.hasNext() sc.hasNext sc {
			int a = sc.nextInt();
			int b = sc.nextInt();

			int sum = a + b;

			String checkSumLength = String.valueOf(sum);

			System.out.println(checkSumLength.length());
		} 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 String checkSumLength = String.valueOf(sum); checkSumLength String.valueOf(sum) String.valueOf String sum System.out.println(checkSumLength.length()) System.out.println System.out System System.out checkSumLength.length() checkSumLength.length checkSumLength String[] args args public class Main {

	public static void main(String[] args) {
		@SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in);

		while (sc.hasNext()) {
			int a = sc.nextInt();
			int b = sc.nextInt();

			int sum = a + b;

			String checkSumLength = String.valueOf(sum);

			System.out.println(checkSumLength.length());
		}
	}

} public class Main {

	public static void main(String[] args) {
		@SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in);

		while (sc.hasNext()) {
			int a = sc.nextInt();
			int b = sc.nextInt();

			int sum = a + b;

			String checkSumLength = String.valueOf(sum);

			System.out.println(checkSumLength.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 a = sc.nextInt();
			int b = sc.nextInt();

			int sum = a + b;

			String checkSumLength = String.valueOf(sum);

			System.out.println(checkSumLength.length());
		}
	}

}