import java.util.Scanner;

public class Main {
	public static void main(String a[]){	
		Scanner scanner = new Scanner(System.in);
		while(scanner.hasNext()){
			int b = scanner.nextInt();
			int c = scanner.nextInt();
			int s = b+c;
			int d = 0;
			while(s!=0){
				s = s/10;
				d++;
			}
			System.out.println(d);
		}
		scanner.close();
	}
}
 import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String a[]){	
		Scanner scanner = new Scanner(System.in);
		while(scanner.hasNext()){
			int b = scanner.nextInt();
			int c = scanner.nextInt();
			int s = b+c;
			int d = 0;
			while(s!=0){
				s = s/10;
				d++;
			}
			System.out.println(d);
		}
		scanner.close();
	}
} Main public static void main(String a[]){	
		Scanner scanner = new Scanner(System.in);
		while(scanner.hasNext()){
			int b = scanner.nextInt();
			int c = scanner.nextInt();
			int s = b+c;
			int d = 0;
			while(s!=0){
				s = s/10;
				d++;
			}
			System.out.println(d);
		}
		scanner.close();
	} main {	
		Scanner scanner = new Scanner(System.in);
		while(scanner.hasNext()){
			int b = scanner.nextInt();
			int c = scanner.nextInt();
			int s = b+c;
			int d = 0;
			while(s!=0){
				s = s/10;
				d++;
			}
			System.out.println(d);
		}
		scanner.close();
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) while(scanner.hasNext()){
			int b = scanner.nextInt();
			int c = scanner.nextInt();
			int s = b+c;
			int d = 0;
			while(s!=0){
				s = s/10;
				d++;
			}
			System.out.println(d);
		} scanner.hasNext() scanner.hasNext scanner {
			int b = scanner.nextInt();
			int c = scanner.nextInt();
			int s = b+c;
			int d = 0;
			while(s!=0){
				s = s/10;
				d++;
			}
			System.out.println(d);
		} int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner int c = scanner.nextInt(); c scanner.nextInt() scanner.nextInt scanner int s = b+c; s b+c b c int d = 0; d 0 while(s!=0){
				s = s/10;
				d++;
			} s!=0 s 0 {
				s = s/10;
				d++;
			} s = s/10 s s/10 s 10 d++ d System.out.println(d) System.out.println System.out System System.out d scanner.close() scanner.close scanner String a[] a public class Main {
	public static void main(String a[]){	
		Scanner scanner = new Scanner(System.in);
		while(scanner.hasNext()){
			int b = scanner.nextInt();
			int c = scanner.nextInt();
			int s = b+c;
			int d = 0;
			while(s!=0){
				s = s/10;
				d++;
			}
			System.out.println(d);
		}
		scanner.close();
	}
} public class Main {
	public static void main(String a[]){	
		Scanner scanner = new Scanner(System.in);
		while(scanner.hasNext()){
			int b = scanner.nextInt();
			int c = scanner.nextInt();
			int s = b+c;
			int d = 0;
			while(s!=0){
				s = s/10;
				d++;
			}
			System.out.println(d);
		}
		scanner.close();
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String a[]){	
		Scanner scanner = new Scanner(System.in);
		while(scanner.hasNext()){
			int b = scanner.nextInt();
			int c = scanner.nextInt();
			int s = b+c;
			int d = 0;
			while(s!=0){
				s = s/10;
				d++;
			}
			System.out.println(d);
		}
		scanner.close();
	}
}

