/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner sc = new Scanner(System.in);
		
		int i = 0;
		int arr[];
		while( sc.hasNext() ){
			arr = new int[2];
			
    		String line[] = sc.nextLine().split(" ");
			arr[0] = Integer.parseInt(line[0]);
			arr[1] = Integer.parseInt(line[1]);
			
    		System.out.println(String.valueOf(arr[0]+arr[1]).length());
		}
	}
} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner sc = new Scanner(System.in);
		
		int i = 0;
		int arr[];
		while( sc.hasNext() ){
			arr = new int[2];
			
    		String line[] = sc.nextLine().split(" ");
			arr[0] = Integer.parseInt(line[0]);
			arr[1] = Integer.parseInt(line[1]);
			
    		System.out.println(String.valueOf(arr[0]+arr[1]).length());
		}
	}
} Main public static void main (String[] args) throws java.lang.Exception
	{
		Scanner sc = new Scanner(System.in);
		
		int i = 0;
		int arr[];
		while( sc.hasNext() ){
			arr = new int[2];
			
    		String line[] = sc.nextLine().split(" ");
			arr[0] = Integer.parseInt(line[0]);
			arr[1] = Integer.parseInt(line[1]);
			
    		System.out.println(String.valueOf(arr[0]+arr[1]).length());
		}
	} main {
		Scanner sc = new Scanner(System.in);
		
		int i = 0;
		int arr[];
		while( sc.hasNext() ){
			arr = new int[2];
			
    		String line[] = sc.nextLine().split(" ");
			arr[0] = Integer.parseInt(line[0]);
			arr[1] = Integer.parseInt(line[1]);
			
    		System.out.println(String.valueOf(arr[0]+arr[1]).length());
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int i = 0; i 0 int arr[]; arr while( sc.hasNext() ){
			arr = new int[2];
			
    		String line[] = sc.nextLine().split(" ");
			arr[0] = Integer.parseInt(line[0]);
			arr[1] = Integer.parseInt(line[1]);
			
    		System.out.println(String.valueOf(arr[0]+arr[1]).length());
		} sc.hasNext() sc.hasNext sc {
			arr = new int[2];
			
    		String line[] = sc.nextLine().split(" ");
			arr[0] = Integer.parseInt(line[0]);
			arr[1] = Integer.parseInt(line[1]);
			
    		System.out.println(String.valueOf(arr[0]+arr[1]).length());
		} arr = new int[2] arr new int[2] 2 String line[] = sc.nextLine().split(" "); line sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " arr[0] = Integer.parseInt(line[0]) arr[0] arr 0 Integer.parseInt(line[0]) Integer.parseInt Integer line[0] line 0 arr[1] = Integer.parseInt(line[1]) arr[1] arr 1 Integer.parseInt(line[1]) Integer.parseInt Integer line[1] line 1 System.out.println(String.valueOf(arr[0]+arr[1]).length()) System.out.println System.out System System.out String.valueOf(arr[0]+arr[1]).length() String.valueOf(arr[0]+arr[1]).length String.valueOf(arr[0]+arr[1]) String.valueOf String arr[0]+arr[1] arr[0] arr 0 arr[1] arr 1 String[] args args
/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner sc = new Scanner(System.in);
		
		int i = 0;
		int arr[];
		while( sc.hasNext() ){
			arr = new int[2];
			
    		String line[] = sc.nextLine().split(" ");
			arr[0] = Integer.parseInt(line[0]);
			arr[1] = Integer.parseInt(line[1]);
			
    		System.out.println(String.valueOf(arr[0]+arr[1]).length());
		}
	}
}