import java.util.Scanner;

public class Main {
	public static void main(String[] arg) {
		int a = 0, b = 0;
		Scanner scan = new Scanner(System.in);
		while (scan.hasNext()) {
			a = scan.nextInt();
			b = scan.nextInt();
			System.out.println(String.valueOf(a + b).length());
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] arg) {
		int a = 0, b = 0;
		Scanner scan = new Scanner(System.in);
		while (scan.hasNext()) {
			a = scan.nextInt();
			b = scan.nextInt();
			System.out.println(String.valueOf(a + b).length());
		}
	}
} Main public static void main(String[] arg) {
		int a = 0, b = 0;
		Scanner scan = new Scanner(System.in);
		while (scan.hasNext()) {
			a = scan.nextInt();
			b = scan.nextInt();
			System.out.println(String.valueOf(a + b).length());
		}
	} main {
		int a = 0, b = 0;
		Scanner scan = new Scanner(System.in);
		while (scan.hasNext()) {
			a = scan.nextInt();
			b = scan.nextInt();
			System.out.println(String.valueOf(a + b).length());
		}
	} int a = 0 a 0 b = 0; b 0 Scanner scan = new Scanner(System.in); scan new Scanner(System.in) while (scan.hasNext()) {
			a = scan.nextInt();
			b = scan.nextInt();
			System.out.println(String.valueOf(a + b).length());
		} scan.hasNext() scan.hasNext scan {
			a = scan.nextInt();
			b = scan.nextInt();
			System.out.println(String.valueOf(a + b).length());
		} a = scan.nextInt() a scan.nextInt() scan.nextInt scan b = scan.nextInt() b scan.nextInt() scan.nextInt scan System.out.println(String.valueOf(a + b).length()) System.out.println System.out System System.out String.valueOf(a + b).length() String.valueOf(a + b).length String.valueOf(a + b) String.valueOf String a + b a b String[] arg arg public class Main {
	public static void main(String[] arg) {
		int a = 0, b = 0;
		Scanner scan = new Scanner(System.in);
		while (scan.hasNext()) {
			a = scan.nextInt();
			b = scan.nextInt();
			System.out.println(String.valueOf(a + b).length());
		}
	}
} public class Main {
	public static void main(String[] arg) {
		int a = 0, b = 0;
		Scanner scan = new Scanner(System.in);
		while (scan.hasNext()) {
			a = scan.nextInt();
			b = scan.nextInt();
			System.out.println(String.valueOf(a + b).length());
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] arg) {
		int a = 0, b = 0;
		Scanner scan = new Scanner(System.in);
		while (scan.hasNext()) {
			a = scan.nextInt();
			b = scan.nextInt();
			System.out.println(String.valueOf(a + b).length());
		}
	}
}