import java.util.*;
class Main{
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		while(sc.hasNextInt()){
			int temp=sc.nextInt();
			temp+=sc.nextInt();
			int count=0;
			//System.err.println(temp);
			while(temp>0){
				temp/=10;
				count++;
			}
			System.out.println(count);
		}
		
	}
} import java.util.*; util.* java class Main{
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		while(sc.hasNextInt()){
			int temp=sc.nextInt();
			temp+=sc.nextInt();
			int count=0;
			//System.err.println(temp);
			while(temp>0){
				temp/=10;
				count++;
			}
			System.out.println(count);
		}
		
	}
} Main public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		while(sc.hasNextInt()){
			int temp=sc.nextInt();
			temp+=sc.nextInt();
			int count=0;
			//System.err.println(temp);
			while(temp>0){
				temp/=10;
				count++;
			}
			System.out.println(count);
		}
		
	} main {
		Scanner sc=new Scanner(System.in);
		while(sc.hasNextInt()){
			int temp=sc.nextInt();
			temp+=sc.nextInt();
			int count=0;
			//System.err.println(temp);
			while(temp>0){
				temp/=10;
				count++;
			}
			System.out.println(count);
		}
		
	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) while(sc.hasNextInt()){
			int temp=sc.nextInt();
			temp+=sc.nextInt();
			int count=0;
			//System.err.println(temp);
			while(temp>0){
				temp/=10;
				count++;
			}
			System.out.println(count);
		} sc.hasNextInt() sc.hasNextInt sc {
			int temp=sc.nextInt();
			temp+=sc.nextInt();
			int count=0;
			//System.err.println(temp);
			while(temp>0){
				temp/=10;
				count++;
			}
			System.out.println(count);
		} int temp=sc.nextInt(); temp sc.nextInt() sc.nextInt sc temp+=sc.nextInt() temp sc.nextInt() sc.nextInt sc int count=0; count 0 while(temp>0){
				temp/=10;
				count++;
			} temp>0 temp 0 {
				temp/=10;
				count++;
			} temp/=10 temp 10 count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args
import java.util.*;
class Main{
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		while(sc.hasNextInt()){
			int temp=sc.nextInt();
			temp+=sc.nextInt();
			int count=0;
			//System.err.println(temp);
			while(temp>0){
				temp/=10;
				count++;
			}
			System.out.println(count);
		}
		
	}
}