import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		while (scan.hasNext()) {
			int a = scan.nextInt();
			int b = scan.nextInt();
			int ans = a + b;
			int i = 0;
			while (ans != 0) {
				ans /= 10;
				i++;
			}
			System.out.println(i);
		}

	}

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

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		while (scan.hasNext()) {
			int a = scan.nextInt();
			int b = scan.nextInt();
			int ans = a + b;
			int i = 0;
			while (ans != 0) {
				ans /= 10;
				i++;
			}
			System.out.println(i);
		}

	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		while (scan.hasNext()) {
			int a = scan.nextInt();
			int b = scan.nextInt();
			int ans = a + b;
			int i = 0;
			while (ans != 0) {
				ans /= 10;
				i++;
			}
			System.out.println(i);
		}

	} main {
		Scanner scan = new Scanner(System.in);
		while (scan.hasNext()) {
			int a = scan.nextInt();
			int b = scan.nextInt();
			int ans = a + b;
			int i = 0;
			while (ans != 0) {
				ans /= 10;
				i++;
			}
			System.out.println(i);
		}

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) while (scan.hasNext()) {
			int a = scan.nextInt();
			int b = scan.nextInt();
			int ans = a + b;
			int i = 0;
			while (ans != 0) {
				ans /= 10;
				i++;
			}
			System.out.println(i);
		} scan.hasNext() scan.hasNext scan {
			int a = scan.nextInt();
			int b = scan.nextInt();
			int ans = a + b;
			int i = 0;
			while (ans != 0) {
				ans /= 10;
				i++;
			}
			System.out.println(i);
		} int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int ans = a + b; ans a + b a b int i = 0; i 0 while (ans != 0) {
				ans /= 10;
				i++;
			} ans != 0 ans 0 {
				ans /= 10;
				i++;
			} ans /= 10 ans 10 i++ i System.out.println(i) System.out.println System.out System System.out i String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		while (scan.hasNext()) {
			int a = scan.nextInt();
			int b = scan.nextInt();
			int ans = a + b;
			int i = 0;
			while (ans != 0) {
				ans /= 10;
				i++;
			}
			System.out.println(i);
		}

	}

} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		while (scan.hasNext()) {
			int a = scan.nextInt();
			int b = scan.nextInt();
			int ans = a + b;
			int i = 0;
			while (ans != 0) {
				ans /= 10;
				i++;
			}
			System.out.println(i);
		}

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		while (scan.hasNext()) {
			int a = scan.nextInt();
			int b = scan.nextInt();
			int ans = a + b;
			int i = 0;
			while (ans != 0) {
				ans /= 10;
				i++;
			}
			System.out.println(i);
		}

	}

}