import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int a, b;
		
		while(scanner.hasNext()) {
			a = scanner.nextInt();
			b = scanner.nextInt();
			if (a == 0 && b == 0) {
				System.out.println(1);
			} else {
				System.out.println((int)Math.floor(Math.log10(a + b)) + 1);
			}
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int a, b;
		
		while(scanner.hasNext()) {
			a = scanner.nextInt();
			b = scanner.nextInt();
			if (a == 0 && b == 0) {
				System.out.println(1);
			} else {
				System.out.println((int)Math.floor(Math.log10(a + b)) + 1);
			}
		}
	}
} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int a, b;
		
		while(scanner.hasNext()) {
			a = scanner.nextInt();
			b = scanner.nextInt();
			if (a == 0 && b == 0) {
				System.out.println(1);
			} else {
				System.out.println((int)Math.floor(Math.log10(a + b)) + 1);
			}
		}
	} main {
		Scanner scanner = new Scanner(System.in);
		int a, b;
		
		while(scanner.hasNext()) {
			a = scanner.nextInt();
			b = scanner.nextInt();
			if (a == 0 && b == 0) {
				System.out.println(1);
			} else {
				System.out.println((int)Math.floor(Math.log10(a + b)) + 1);
			}
		}
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int a a b; b while(scanner.hasNext()) {
			a = scanner.nextInt();
			b = scanner.nextInt();
			if (a == 0 && b == 0) {
				System.out.println(1);
			} else {
				System.out.println((int)Math.floor(Math.log10(a + b)) + 1);
			}
		} scanner.hasNext() scanner.hasNext scanner {
			a = scanner.nextInt();
			b = scanner.nextInt();
			if (a == 0 && b == 0) {
				System.out.println(1);
			} else {
				System.out.println((int)Math.floor(Math.log10(a + b)) + 1);
			}
		} a = scanner.nextInt() a scanner.nextInt() scanner.nextInt scanner b = scanner.nextInt() b scanner.nextInt() scanner.nextInt scanner if (a == 0 && b == 0) {
				System.out.println(1);
			} else {
				System.out.println((int)Math.floor(Math.log10(a + b)) + 1);
			} a == 0 && b == 0 a == 0 a 0 b == 0 b 0 {
				System.out.println(1);
			} System.out.println(1) System.out.println System.out System System.out 1 {
				System.out.println((int)Math.floor(Math.log10(a + b)) + 1);
			} System.out.println((int)Math.floor(Math.log10(a + b)) + 1) System.out.println System.out System System.out (int)Math.floor(Math.log10(a + b)) + 1 (int)Math.floor(Math.log10(a + b)) Math.floor Math Math.log10(a + b) Math.log10 Math a + b a b 1 String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int a, b;
		
		while(scanner.hasNext()) {
			a = scanner.nextInt();
			b = scanner.nextInt();
			if (a == 0 && b == 0) {
				System.out.println(1);
			} else {
				System.out.println((int)Math.floor(Math.log10(a + b)) + 1);
			}
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int a, b;
		
		while(scanner.hasNext()) {
			a = scanner.nextInt();
			b = scanner.nextInt();
			if (a == 0 && b == 0) {
				System.out.println(1);
			} else {
				System.out.println((int)Math.floor(Math.log10(a + b)) + 1);
			}
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int a, b;
		
		while(scanner.hasNext()) {
			a = scanner.nextInt();
			b = scanner.nextInt();
			if (a == 0 && b == 0) {
				System.out.println(1);
			} else {
				System.out.println((int)Math.floor(Math.log10(a + b)) + 1);
			}
		}
	}
}