import java.util.Scanner;
class Main{
    public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		int a, b, sum;
		int digit = 1;
		while(in.hasNextInt()){
			a = in.nextInt();
			if(in.hasNextInt()){
				b = in.nextInt();
			}else{
				break;
			}
			sum = a+b;
			while(sum>=10){
				sum /= 10;
				digit++;
			}
			System.out.println(digit);
			digit = 1;
		}
    }
} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		int a, b, sum;
		int digit = 1;
		while(in.hasNextInt()){
			a = in.nextInt();
			if(in.hasNextInt()){
				b = in.nextInt();
			}else{
				break;
			}
			sum = a+b;
			while(sum>=10){
				sum /= 10;
				digit++;
			}
			System.out.println(digit);
			digit = 1;
		}
    }
} Main public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		int a, b, sum;
		int digit = 1;
		while(in.hasNextInt()){
			a = in.nextInt();
			if(in.hasNextInt()){
				b = in.nextInt();
			}else{
				break;
			}
			sum = a+b;
			while(sum>=10){
				sum /= 10;
				digit++;
			}
			System.out.println(digit);
			digit = 1;
		}
    } main {
		Scanner in = new Scanner(System.in);
		int a, b, sum;
		int digit = 1;
		while(in.hasNextInt()){
			a = in.nextInt();
			if(in.hasNextInt()){
				b = in.nextInt();
			}else{
				break;
			}
			sum = a+b;
			while(sum>=10){
				sum /= 10;
				digit++;
			}
			System.out.println(digit);
			digit = 1;
		}
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) int a a b b sum; sum int digit = 1; digit 1 while(in.hasNextInt()){
			a = in.nextInt();
			if(in.hasNextInt()){
				b = in.nextInt();
			}else{
				break;
			}
			sum = a+b;
			while(sum>=10){
				sum /= 10;
				digit++;
			}
			System.out.println(digit);
			digit = 1;
		} in.hasNextInt() in.hasNextInt in {
			a = in.nextInt();
			if(in.hasNextInt()){
				b = in.nextInt();
			}else{
				break;
			}
			sum = a+b;
			while(sum>=10){
				sum /= 10;
				digit++;
			}
			System.out.println(digit);
			digit = 1;
		} a = in.nextInt() a in.nextInt() in.nextInt in if(in.hasNextInt()){
				b = in.nextInt();
			}else{
				break;
			} in.hasNextInt() in.hasNextInt in {
				b = in.nextInt();
			} b = in.nextInt() b in.nextInt() in.nextInt in {
				break;
			} break; sum = a+b sum a+b a b while(sum>=10){
				sum /= 10;
				digit++;
			} sum>=10 sum 10 {
				sum /= 10;
				digit++;
			} sum /= 10 sum 10 digit++ digit System.out.println(digit) System.out.println System.out System System.out digit digit = 1 digit 1 String[] args args
import java.util.Scanner;
class Main{
    public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		int a, b, sum;
		int digit = 1;
		while(in.hasNextInt()){
			a = in.nextInt();
			if(in.hasNextInt()){
				b = in.nextInt();
			}else{
				break;
			}
			sum = a+b;
			while(sum>=10){
				sum /= 10;
				digit++;
			}
			System.out.println(digit);
			digit = 1;
		}
    }
}