import java.util.Scanner;
public class Main{
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		while(sc.hasNextInt()){
			int a=sc.nextInt();
			int b=sc.nextInt();
			double c=a+b;
			int cnt=0;
			while(c>=1){
				c=c/10;
				cnt++;
			}
			System.out.println(cnt);
		}
		sc.close();
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		while(sc.hasNextInt()){
			int a=sc.nextInt();
			int b=sc.nextInt();
			double c=a+b;
			int cnt=0;
			while(c>=1){
				c=c/10;
				cnt++;
			}
			System.out.println(cnt);
		}
		sc.close();
	}
} Main public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		while(sc.hasNextInt()){
			int a=sc.nextInt();
			int b=sc.nextInt();
			double c=a+b;
			int cnt=0;
			while(c>=1){
				c=c/10;
				cnt++;
			}
			System.out.println(cnt);
		}
		sc.close();
	} main {
		Scanner sc=new Scanner(System.in);
		while(sc.hasNextInt()){
			int a=sc.nextInt();
			int b=sc.nextInt();
			double c=a+b;
			int cnt=0;
			while(c>=1){
				c=c/10;
				cnt++;
			}
			System.out.println(cnt);
		}
		sc.close();
	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) while(sc.hasNextInt()){
			int a=sc.nextInt();
			int b=sc.nextInt();
			double c=a+b;
			int cnt=0;
			while(c>=1){
				c=c/10;
				cnt++;
			}
			System.out.println(cnt);
		} sc.hasNextInt() sc.hasNextInt sc {
			int a=sc.nextInt();
			int b=sc.nextInt();
			double c=a+b;
			int cnt=0;
			while(c>=1){
				c=c/10;
				cnt++;
			}
			System.out.println(cnt);
		} int a=sc.nextInt(); a sc.nextInt() sc.nextInt sc int b=sc.nextInt(); b sc.nextInt() sc.nextInt sc double c=a+b; c a+b a b int cnt=0; cnt 0 while(c>=1){
				c=c/10;
				cnt++;
			} c>=1 c 1 {
				c=c/10;
				cnt++;
			} c=c/10 c c/10 c 10 cnt++ cnt System.out.println(cnt) System.out.println System.out System System.out cnt sc.close() sc.close sc String[] args args public class Main{
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		while(sc.hasNextInt()){
			int a=sc.nextInt();
			int b=sc.nextInt();
			double c=a+b;
			int cnt=0;
			while(c>=1){
				c=c/10;
				cnt++;
			}
			System.out.println(cnt);
		}
		sc.close();
	}
} public class Main{
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		while(sc.hasNextInt()){
			int a=sc.nextInt();
			int b=sc.nextInt();
			double c=a+b;
			int cnt=0;
			while(c>=1){
				c=c/10;
				cnt++;
			}
			System.out.println(cnt);
		}
		sc.close();
	}
} Main
import java.util.Scanner;
public class Main{
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		while(sc.hasNextInt()){
			int a=sc.nextInt();
			int b=sc.nextInt();
			double c=a+b;
			int cnt=0;
			while(c>=1){
				c=c/10;
				cnt++;
			}
			System.out.println(cnt);
		}
		sc.close();
	}
}