
import java.util.Scanner;

public class Main {
	public static void main(String[]args){
		Scanner scan = new Scanner(System.in);
		while(scan.hasNext()){
			int a = scan.nextInt();
			int b = scan.nextInt();
			int count = String.valueOf(a + b).length();


			System.out.println(count);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[]args){
		Scanner scan = new Scanner(System.in);
		while(scan.hasNext()){
			int a = scan.nextInt();
			int b = scan.nextInt();
			int count = String.valueOf(a + b).length();


			System.out.println(count);
		}
	}
} Main public static void main(String[]args){
		Scanner scan = new Scanner(System.in);
		while(scan.hasNext()){
			int a = scan.nextInt();
			int b = scan.nextInt();
			int count = String.valueOf(a + b).length();


			System.out.println(count);
		}
	} main {
		Scanner scan = new Scanner(System.in);
		while(scan.hasNext()){
			int a = scan.nextInt();
			int b = scan.nextInt();
			int count = String.valueOf(a + b).length();


			System.out.println(count);
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) while(scan.hasNext()){
			int a = scan.nextInt();
			int b = scan.nextInt();
			int count = String.valueOf(a + b).length();


			System.out.println(count);
		} scan.hasNext() scan.hasNext scan {
			int a = scan.nextInt();
			int b = scan.nextInt();
			int count = String.valueOf(a + b).length();


			System.out.println(count);
		} int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int count = String.valueOf(a + b).length(); count String.valueOf(a + b).length() String.valueOf(a + b).length String.valueOf(a + b) String.valueOf String a + b a b System.out.println(count) System.out.println System.out System System.out count String[]args args public class Main {
	public static void main(String[]args){
		Scanner scan = new Scanner(System.in);
		while(scan.hasNext()){
			int a = scan.nextInt();
			int b = scan.nextInt();
			int count = String.valueOf(a + b).length();


			System.out.println(count);
		}
	}
} public class Main {
	public static void main(String[]args){
		Scanner scan = new Scanner(System.in);
		while(scan.hasNext()){
			int a = scan.nextInt();
			int b = scan.nextInt();
			int count = String.valueOf(a + b).length();


			System.out.println(count);
		}
	}
} Main

import java.util.Scanner;

public class Main {
	public static void main(String[]args){
		Scanner scan = new Scanner(System.in);
		while(scan.hasNext()){
			int a = scan.nextInt();
			int b = scan.nextInt();
			int count = String.valueOf(a + b).length();


			System.out.println(count);
		}
	}
}