import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = a + b;
			System.out.println(Integer.toString(c).length());
		}
	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = a + b;
			System.out.println(Integer.toString(c).length());
		}
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = a + b;
			System.out.println(Integer.toString(c).length());
		}
	} main {
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = a + b;
			System.out.println(Integer.toString(c).length());
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while(sc.hasNext()) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = a + b;
			System.out.println(Integer.toString(c).length());
		} sc.hasNext() sc.hasNext sc {
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = a + b;
			System.out.println(Integer.toString(c).length());
		} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int c = a + b; c a + b a b System.out.println(Integer.toString(c).length()) System.out.println System.out System System.out Integer.toString(c).length() Integer.toString(c).length Integer.toString(c) Integer.toString Integer c String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = a + b;
			System.out.println(Integer.toString(c).length());
		}
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = a + b;
			System.out.println(Integer.toString(c).length());
		}
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = a + b;
			System.out.println(Integer.toString(c).length());
		}
	}

}