import java.util.*;

class Main {
	public static int digitNumber(int number) {
		int count = 0;
		while (number != 0) {
			number /= 10;
			count++;
		}
		return count;
	}
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		while (scanner.hasNext()) {
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			System.out.println(digitNumber(a + b));
		}
	}
} import java.util.*; util.* java class Main {
	public static int digitNumber(int number) {
		int count = 0;
		while (number != 0) {
			number /= 10;
			count++;
		}
		return count;
	}
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		while (scanner.hasNext()) {
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			System.out.println(digitNumber(a + b));
		}
	}
} Main public static int digitNumber(int number) {
		int count = 0;
		while (number != 0) {
			number /= 10;
			count++;
		}
		return count;
	} digitNumber {
		int count = 0;
		while (number != 0) {
			number /= 10;
			count++;
		}
		return count;
	} int count = 0; count 0 while (number != 0) {
			number /= 10;
			count++;
		} number != 0 number 0 {
			number /= 10;
			count++;
		} number /= 10 number 10 count++ count return count; count int number number public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		while (scanner.hasNext()) {
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			System.out.println(digitNumber(a + b));
		}
	} main {
		Scanner scanner = new Scanner(System.in);
		while (scanner.hasNext()) {
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			System.out.println(digitNumber(a + b));
		}
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) while (scanner.hasNext()) {
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			System.out.println(digitNumber(a + b));
		} scanner.hasNext() scanner.hasNext scanner {
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			System.out.println(digitNumber(a + b));
		} int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner System.out.println(digitNumber(a + b)) System.out.println System.out System System.out digitNumber(a + b) digitNumber a + b a b String[] args args
import java.util.*;

class Main {
	public static int digitNumber(int number) {
		int count = 0;
		while (number != 0) {
			number /= 10;
			count++;
		}
		return count;
	}
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		while (scanner.hasNext()) {
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			System.out.println(digitNumber(a + b));
		}
	}
}