import java.util.Scanner;

public class Main {

	/**
	 * Digit Number
	 * @param args
	 */
	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(calcNumberDigit(a, b));
		}
	}

	private static int calcNumberDigit(int a, int b) {
		int target = a + b;
		int result = 1;
		int divide = 10;

		while (true) {
			if (target / divide < 1) {
				return result;
			}
			result++;
			divide *= 10;
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

	/**
	 * Digit Number
	 * @param args
	 */
	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(calcNumberDigit(a, b));
		}
	}

	private static int calcNumberDigit(int a, int b) {
		int target = a + b;
		int result = 1;
		int divide = 10;

		while (true) {
			if (target / divide < 1) {
				return result;
			}
			result++;
			divide *= 10;
		}
	}
} Main /**
	 * Digit Number
	 * @param args
	 */
	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(calcNumberDigit(a, b));
		}
	} main {
		Scanner scanner = new Scanner(System.in);

		while (scanner.hasNext()) {
			int a = scanner.nextInt();
			int b = scanner.nextInt();

			System.out.println(calcNumberDigit(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(calcNumberDigit(a, b));
		} scanner.hasNext() scanner.hasNext scanner {
			int a = scanner.nextInt();
			int b = scanner.nextInt();

			System.out.println(calcNumberDigit(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(calcNumberDigit(a, b)) System.out.println System.out System System.out calcNumberDigit(a, b) calcNumberDigit a b String[] args args private static int calcNumberDigit(int a, int b) {
		int target = a + b;
		int result = 1;
		int divide = 10;

		while (true) {
			if (target / divide < 1) {
				return result;
			}
			result++;
			divide *= 10;
		}
	} calcNumberDigit {
		int target = a + b;
		int result = 1;
		int divide = 10;

		while (true) {
			if (target / divide < 1) {
				return result;
			}
			result++;
			divide *= 10;
		}
	} int target = a + b; target a + b a b int result = 1; result 1 int divide = 10; divide 10 while (true) {
			if (target / divide < 1) {
				return result;
			}
			result++;
			divide *= 10;
		} true {
			if (target / divide < 1) {
				return result;
			}
			result++;
			divide *= 10;
		} if (target / divide < 1) {
				return result;
			} target / divide < 1 target / divide target divide 1 {
				return result;
			} return result; result result++ result divide *= 10 divide 10 int a a int b b public class Main {

	/**
	 * Digit Number
	 * @param args
	 */
	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(calcNumberDigit(a, b));
		}
	}

	private static int calcNumberDigit(int a, int b) {
		int target = a + b;
		int result = 1;
		int divide = 10;

		while (true) {
			if (target / divide < 1) {
				return result;
			}
			result++;
			divide *= 10;
		}
	}
} public class Main {

	/**
	 * Digit Number
	 * @param args
	 */
	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(calcNumberDigit(a, b));
		}
	}

	private static int calcNumberDigit(int a, int b) {
		int target = a + b;
		int result = 1;
		int divide = 10;

		while (true) {
			if (target / divide < 1) {
				return result;
			}
			result++;
			divide *= 10;
		}
	}
} Main
import java.util.Scanner;

public class Main {

	/**
	 * Digit Number
	 * @param args
	 */
	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(calcNumberDigit(a, b));
		}
	}

	private static int calcNumberDigit(int a, int b) {
		int target = a + b;
		int result = 1;
		int divide = 10;

		while (true) {
			if (target / divide < 1) {
				return result;
			}
			result++;
			divide *= 10;
		}
	}
}