import java.util.*;

class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int n= sc.nextInt();
			int o= sc.nextInt();
			int wa = n+o;
			System.out.println(sum(wa));
			}
		sc.close();



	}
	static int sum(int n){
		int i=1;
		int t=10;
		while(n>=t){
			t=t*10;
			i++;
			}
		return i;
	}
} import java.util.*; util.* java class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int n= sc.nextInt();
			int o= sc.nextInt();
			int wa = n+o;
			System.out.println(sum(wa));
			}
		sc.close();



	}
	static int sum(int n){
		int i=1;
		int t=10;
		while(n>=t){
			t=t*10;
			i++;
			}
		return i;
	}
} Main public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int n= sc.nextInt();
			int o= sc.nextInt();
			int wa = n+o;
			System.out.println(sum(wa));
			}
		sc.close();



	} main {
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int n= sc.nextInt();
			int o= sc.nextInt();
			int wa = n+o;
			System.out.println(sum(wa));
			}
		sc.close();



	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while(sc.hasNext()){
			int n= sc.nextInt();
			int o= sc.nextInt();
			int wa = n+o;
			System.out.println(sum(wa));
			} sc.hasNext() sc.hasNext sc {
			int n= sc.nextInt();
			int o= sc.nextInt();
			int wa = n+o;
			System.out.println(sum(wa));
			} int n= sc.nextInt(); n sc.nextInt() sc.nextInt sc int o= sc.nextInt(); o sc.nextInt() sc.nextInt sc int wa = n+o; wa n+o n o System.out.println(sum(wa)) System.out.println System.out System System.out sum(wa) sum wa sc.close() sc.close sc String args[] args static int sum(int n){
		int i=1;
		int t=10;
		while(n>=t){
			t=t*10;
			i++;
			}
		return i;
	} sum {
		int i=1;
		int t=10;
		while(n>=t){
			t=t*10;
			i++;
			}
		return i;
	} int i=1; i 1 int t=10; t 10 while(n>=t){
			t=t*10;
			i++;
			} n>=t n t {
			t=t*10;
			i++;
			} t=t*10 t t*10 t 10 i++ i return i; i int n n
import java.util.*;

class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int n= sc.nextInt();
			int o= sc.nextInt();
			int wa = n+o;
			System.out.println(sum(wa));
			}
		sc.close();



	}
	static int sum(int n){
		int i=1;
		int t=10;
		while(n>=t){
			t=t*10;
			i++;
			}
		return i;
	}
}