import java.util.Scanner;

class Main {
	public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)){
			while(sc.hasNextInt()){
				int a=Integer.parseInt(sc.next());
				int b=Integer.parseInt(sc.next());
				int digit = 1;
				int n=0;
				while((a+b)>=digit){
					digit=digit*10;
					n++;
				}
				System.out.println(n);
				
			}
		}
	}
} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)){
			while(sc.hasNextInt()){
				int a=Integer.parseInt(sc.next());
				int b=Integer.parseInt(sc.next());
				int digit = 1;
				int n=0;
				while((a+b)>=digit){
					digit=digit*10;
					n++;
				}
				System.out.println(n);
				
			}
		}
	}
} Main public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)){
			while(sc.hasNextInt()){
				int a=Integer.parseInt(sc.next());
				int b=Integer.parseInt(sc.next());
				int digit = 1;
				int n=0;
				while((a+b)>=digit){
					digit=digit*10;
					n++;
				}
				System.out.println(n);
				
			}
		}
	} main {
		try(Scanner sc = new Scanner(System.in)){
			while(sc.hasNextInt()){
				int a=Integer.parseInt(sc.next());
				int b=Integer.parseInt(sc.next());
				int digit = 1;
				int n=0;
				while((a+b)>=digit){
					digit=digit*10;
					n++;
				}
				System.out.println(n);
				
			}
		}
	} try(Scanner sc = new Scanner(System.in)){
			while(sc.hasNextInt()){
				int a=Integer.parseInt(sc.next());
				int b=Integer.parseInt(sc.next());
				int digit = 1;
				int n=0;
				while((a+b)>=digit){
					digit=digit*10;
					n++;
				}
				System.out.println(n);
				
			}
		} {
			while(sc.hasNextInt()){
				int a=Integer.parseInt(sc.next());
				int b=Integer.parseInt(sc.next());
				int digit = 1;
				int n=0;
				while((a+b)>=digit){
					digit=digit*10;
					n++;
				}
				System.out.println(n);
				
			}
		} Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) while(sc.hasNextInt()){
				int a=Integer.parseInt(sc.next());
				int b=Integer.parseInt(sc.next());
				int digit = 1;
				int n=0;
				while((a+b)>=digit){
					digit=digit*10;
					n++;
				}
				System.out.println(n);
				
			} sc.hasNextInt() sc.hasNextInt sc {
				int a=Integer.parseInt(sc.next());
				int b=Integer.parseInt(sc.next());
				int digit = 1;
				int n=0;
				while((a+b)>=digit){
					digit=digit*10;
					n++;
				}
				System.out.println(n);
				
			} int a=Integer.parseInt(sc.next()); a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int b=Integer.parseInt(sc.next()); b Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int digit = 1; digit 1 int n=0; n 0 while((a+b)>=digit){
					digit=digit*10;
					n++;
				} (a+b)>=digit (a+b) a b digit {
					digit=digit*10;
					n++;
				} digit=digit*10 digit digit*10 digit 10 n++ n System.out.println(n) System.out.println System.out System System.out n String[] args args
import java.util.Scanner;

class Main {
	public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)){
			while(sc.hasNextInt()){
				int a=Integer.parseInt(sc.next());
				int b=Integer.parseInt(sc.next());
				int digit = 1;
				int n=0;
				while((a+b)>=digit){
					digit=digit*10;
					n++;
				}
				System.out.println(n);
				
			}
		}
	}
}