import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int a = sc.nextInt();
			int b = sc.nextInt();
			int x = a + b;
			int d = 0;
			
			while(x != 0){
				x /= 10;
				d++;
			}
			
			System.out.println(d);
		}
		
		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.hasNext()){
			int a = sc.nextInt();
			int b = sc.nextInt();
			int x = a + b;
			int d = 0;
			
			while(x != 0){
				x /= 10;
				d++;
			}
			
			System.out.println(d);
		}
		
		sc.close();
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int a = sc.nextInt();
			int b = sc.nextInt();
			int x = a + b;
			int d = 0;
			
			while(x != 0){
				x /= 10;
				d++;
			}
			
			System.out.println(d);
		}
		
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int a = sc.nextInt();
			int b = sc.nextInt();
			int x = a + b;
			int d = 0;
			
			while(x != 0){
				x /= 10;
				d++;
			}
			
			System.out.println(d);
		}
		
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while(sc.hasNext()){
			int a = sc.nextInt();
			int b = sc.nextInt();
			int x = a + b;
			int d = 0;
			
			while(x != 0){
				x /= 10;
				d++;
			}
			
			System.out.println(d);
		} sc.hasNext() sc.hasNext sc {
			int a = sc.nextInt();
			int b = sc.nextInt();
			int x = a + b;
			int d = 0;
			
			while(x != 0){
				x /= 10;
				d++;
			}
			
			System.out.println(d);
		} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int x = a + b; x a + b a b int d = 0; d 0 while(x != 0){
				x /= 10;
				d++;
			} x != 0 x 0 {
				x /= 10;
				d++;
			} x /= 10 x 10 d++ d System.out.println(d) System.out.println System.out System System.out d 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.hasNext()){
			int a = sc.nextInt();
			int b = sc.nextInt();
			int x = a + b;
			int d = 0;
			
			while(x != 0){
				x /= 10;
				d++;
			}
			
			System.out.println(d);
		}
		
		sc.close();
	}

} public class Main {

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

} Main
import java.util.Scanner;

public class Main {

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

}