import java.util.Scanner;

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

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