import java.util.Scanner;

//Digit Number
class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int a=sc.nextInt()+sc.nextInt();
			System.out.println((a+"").length());
		}
	}
} import java.util.Scanner; Scanner java.util class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int a=sc.nextInt()+sc.nextInt();
			System.out.println((a+"").length());
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int a=sc.nextInt()+sc.nextInt();
			System.out.println((a+"").length());
		}
	} main {
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int a=sc.nextInt()+sc.nextInt();
			System.out.println((a+"").length());
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while(sc.hasNext()){
			int a=sc.nextInt()+sc.nextInt();
			System.out.println((a+"").length());
		} sc.hasNext() sc.hasNext sc {
			int a=sc.nextInt()+sc.nextInt();
			System.out.println((a+"").length());
		} int a=sc.nextInt()+sc.nextInt(); a sc.nextInt()+sc.nextInt() sc.nextInt() sc.nextInt sc sc.nextInt() sc.nextInt sc System.out.println((a+"").length()) System.out.println System.out System System.out (a+"").length() (a+"").length (a+"") a "" String[] args args
import java.util.Scanner;

//Digit Number
class Main {

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