import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		while (scanner.hasNext()) {
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			int i = 0;
			int digit = 1;
			while (a + b >= digit) {
				i++;
				digit *= 10;
			}
			System.out.println(i);
		}
	}

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

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		while (scanner.hasNext()) {
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			int i = 0;
			int digit = 1;
			while (a + b >= digit) {
				i++;
				digit *= 10;
			}
			System.out.println(i);
		}
	}

} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		while (scanner.hasNext()) {
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			int i = 0;
			int digit = 1;
			while (a + b >= digit) {
				i++;
				digit *= 10;
			}
			System.out.println(i);
		}
	} main {
		Scanner scanner = new Scanner(System.in);
		while (scanner.hasNext()) {
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			int i = 0;
			int digit = 1;
			while (a + b >= digit) {
				i++;
				digit *= 10;
			}
			System.out.println(i);
		}
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) while (scanner.hasNext()) {
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			int i = 0;
			int digit = 1;
			while (a + b >= digit) {
				i++;
				digit *= 10;
			}
			System.out.println(i);
		} scanner.hasNext() scanner.hasNext scanner {
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			int i = 0;
			int digit = 1;
			while (a + b >= digit) {
				i++;
				digit *= 10;
			}
			System.out.println(i);
		} int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner int i = 0; i 0 int digit = 1; digit 1 while (a + b >= digit) {
				i++;
				digit *= 10;
			} a + b >= digit a + b a b digit {
				i++;
				digit *= 10;
			} i++ i digit *= 10 digit 10 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 scanner = new Scanner(System.in);
		while (scanner.hasNext()) {
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			int i = 0;
			int digit = 1;
			while (a + b >= digit) {
				i++;
				digit *= 10;
			}
			System.out.println(i);
		}
	}

} public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		while (scanner.hasNext()) {
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			int i = 0;
			int digit = 1;
			while (a + b >= digit) {
				i++;
				digit *= 10;
			}
			System.out.println(i);
		}
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		while (scanner.hasNext()) {
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			int i = 0;
			int digit = 1;
			while (a + b >= digit) {
				i++;
				digit *= 10;
			}
			System.out.println(i);
		}
	}

}