import 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 c = a + b;

			int l = 0;

			while (c != 0) {
				++l;
				c /= 10;
			}

			System.out.println(l);
		}
	}

} import java.util.*; util.* java 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 c = a + b;

			int l = 0;

			while (c != 0) {
				++l;
				c /= 10;
			}

			System.out.println(l);
		}
	}

} 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 c = a + b;

			int l = 0;

			while (c != 0) {
				++l;
				c /= 10;
			}

			System.out.println(l);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		while (sc.hasNext()) {
			int a = sc.nextInt();
			int b = sc.nextInt();

			int c = a + b;

			int l = 0;

			while (c != 0) {
				++l;
				c /= 10;
			}

			System.out.println(l);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while (sc.hasNext()) {
			int a = sc.nextInt();
			int b = sc.nextInt();

			int c = a + b;

			int l = 0;

			while (c != 0) {
				++l;
				c /= 10;
			}

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

			int c = a + b;

			int l = 0;

			while (c != 0) {
				++l;
				c /= 10;
			}

			System.out.println(l);
		} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int c = a + b; c a + b a b int l = 0; l 0 while (c != 0) {
				++l;
				c /= 10;
			} c != 0 c 0 {
				++l;
				c /= 10;
			} ++l l c /= 10 c 10 System.out.println(l) System.out.println System.out System System.out l 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 c = a + b;

			int l = 0;

			while (c != 0) {
				++l;
				c /= 10;
			}

			System.out.println(l);
		}
	}

} 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 c = a + b;

			int l = 0;

			while (c != 0) {
				++l;
				c /= 10;
			}

			System.out.println(l);
		}
	}

} Main
import 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 c = a + b;

			int l = 0;

			while (c != 0) {
				++l;
				c /= 10;
			}

			System.out.println(l);
		}
	}

}