
import java.util.Scanner;

public class Main {

	private static int N = 200;

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

		int cnt = 0;

		while (sc.hasNextInt()) {
			cnt++;
			if (cnt > 200)
				break;

			int a = sc.nextInt();
			int b = sc.nextInt();

			int sum = a + b;
			int count = 1;

			while ((sum /= 10) != 0) {
				count++;
			}

			System.out.println(count);
		}
	}

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

	private static int N = 200;

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

		int cnt = 0;

		while (sc.hasNextInt()) {
			cnt++;
			if (cnt > 200)
				break;

			int a = sc.nextInt();
			int b = sc.nextInt();

			int sum = a + b;
			int count = 1;

			while ((sum /= 10) != 0) {
				count++;
			}

			System.out.println(count);
		}
	}

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

		int cnt = 0;

		while (sc.hasNextInt()) {
			cnt++;
			if (cnt > 200)
				break;

			int a = sc.nextInt();
			int b = sc.nextInt();

			int sum = a + b;
			int count = 1;

			while ((sum /= 10) != 0) {
				count++;
			}

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

		int cnt = 0;

		while (sc.hasNextInt()) {
			cnt++;
			if (cnt > 200)
				break;

			int a = sc.nextInt();
			int b = sc.nextInt();

			int sum = a + b;
			int count = 1;

			while ((sum /= 10) != 0) {
				count++;
			}

			System.out.println(count);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int cnt = 0; cnt 0 while (sc.hasNextInt()) {
			cnt++;
			if (cnt > 200)
				break;

			int a = sc.nextInt();
			int b = sc.nextInt();

			int sum = a + b;
			int count = 1;

			while ((sum /= 10) != 0) {
				count++;
			}

			System.out.println(count);
		} sc.hasNextInt() sc.hasNextInt sc {
			cnt++;
			if (cnt > 200)
				break;

			int a = sc.nextInt();
			int b = sc.nextInt();

			int sum = a + b;
			int count = 1;

			while ((sum /= 10) != 0) {
				count++;
			}

			System.out.println(count);
		} cnt++ cnt if (cnt > 200)
				break; cnt > 200 cnt 200 break; 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 count = 1; count 1 while ((sum /= 10) != 0) {
				count++;
			} (sum /= 10) != 0 (sum /= 10) sum 10 0 {
				count++;
			} count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {

	private static int N = 200;

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

		int cnt = 0;

		while (sc.hasNextInt()) {
			cnt++;
			if (cnt > 200)
				break;

			int a = sc.nextInt();
			int b = sc.nextInt();

			int sum = a + b;
			int count = 1;

			while ((sum /= 10) != 0) {
				count++;
			}

			System.out.println(count);
		}
	}

} public class Main {

	private static int N = 200;

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

		int cnt = 0;

		while (sc.hasNextInt()) {
			cnt++;
			if (cnt > 200)
				break;

			int a = sc.nextInt();
			int b = sc.nextInt();

			int sum = a + b;
			int count = 1;

			while ((sum /= 10) != 0) {
				count++;
			}

			System.out.println(count);
		}
	}

} Main

import java.util.Scanner;

public class Main {

	private static int N = 200;

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

		int cnt = 0;

		while (sc.hasNextInt()) {
			cnt++;
			if (cnt > 200)
				break;

			int a = sc.nextInt();
			int b = sc.nextInt();

			int sum = a + b;
			int count = 1;

			while ((sum /= 10) != 0) {
				count++;
			}

			System.out.println(count);
		}
	}

}