import java.io.IOException;
import java.util.Scanner;

public class Main{
	public static void main(String[] args) throws NumberFormatException, IOException{
		int firstinput;
		int secondinput;
		int length;
		Scanner scan = new Scanner(System.in);
		while(scan.hasNext()){
			firstinput = scan.nextInt();
			secondinput = scan.nextInt();
			length = String.valueOf((firstinput + secondinput)).length();
			System.out.println(length);
		}

	}
} import java.io.IOException; IOException java.io import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args) throws NumberFormatException, IOException{
		int firstinput;
		int secondinput;
		int length;
		Scanner scan = new Scanner(System.in);
		while(scan.hasNext()){
			firstinput = scan.nextInt();
			secondinput = scan.nextInt();
			length = String.valueOf((firstinput + secondinput)).length();
			System.out.println(length);
		}

	}
} Main public static void main(String[] args) throws NumberFormatException, IOException{
		int firstinput;
		int secondinput;
		int length;
		Scanner scan = new Scanner(System.in);
		while(scan.hasNext()){
			firstinput = scan.nextInt();
			secondinput = scan.nextInt();
			length = String.valueOf((firstinput + secondinput)).length();
			System.out.println(length);
		}

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

	} int firstinput; firstinput int secondinput; secondinput int length; length Scanner scan = new Scanner(System.in); scan new Scanner(System.in) while(scan.hasNext()){
			firstinput = scan.nextInt();
			secondinput = scan.nextInt();
			length = String.valueOf((firstinput + secondinput)).length();
			System.out.println(length);
		} scan.hasNext() scan.hasNext scan {
			firstinput = scan.nextInt();
			secondinput = scan.nextInt();
			length = String.valueOf((firstinput + secondinput)).length();
			System.out.println(length);
		} firstinput = scan.nextInt() firstinput scan.nextInt() scan.nextInt scan secondinput = scan.nextInt() secondinput scan.nextInt() scan.nextInt scan length = String.valueOf((firstinput + secondinput)).length() length String.valueOf((firstinput + secondinput)).length() String.valueOf((firstinput + secondinput)).length String.valueOf((firstinput + secondinput)) String.valueOf String (firstinput + secondinput) firstinput secondinput System.out.println(length) System.out.println System.out System System.out length String[] args args public class Main{
	public static void main(String[] args) throws NumberFormatException, IOException{
		int firstinput;
		int secondinput;
		int length;
		Scanner scan = new Scanner(System.in);
		while(scan.hasNext()){
			firstinput = scan.nextInt();
			secondinput = scan.nextInt();
			length = String.valueOf((firstinput + secondinput)).length();
			System.out.println(length);
		}

	}
} public class Main{
	public static void main(String[] args) throws NumberFormatException, IOException{
		int firstinput;
		int secondinput;
		int length;
		Scanner scan = new Scanner(System.in);
		while(scan.hasNext()){
			firstinput = scan.nextInt();
			secondinput = scan.nextInt();
			length = String.valueOf((firstinput + secondinput)).length();
			System.out.println(length);
		}

	}
} Main
import java.io.IOException;
import java.util.Scanner;

public class Main{
	public static void main(String[] args) throws NumberFormatException, IOException{
		int firstinput;
		int secondinput;
		int length;
		Scanner scan = new Scanner(System.in);
		while(scan.hasNext()){
			firstinput = scan.nextInt();
			secondinput = scan.nextInt();
			length = String.valueOf((firstinput + secondinput)).length();
			System.out.println(length);
		}

	}
}