import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main{
    public static void main(String[] a)throws IOException{
    	BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
 		String str = null;
 		String[] strList = new String[2];

 		while((str = in.readLine()) != null){                    
            strList = str.split(" ");

            int sum = Integer.parseInt(strList[0])+Integer.parseInt(strList[1]);

            System.out.println(String.valueOf(sum).length());
	    }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Main{
    public static void main(String[] a)throws IOException{
    	BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
 		String str = null;
 		String[] strList = new String[2];

 		while((str = in.readLine()) != null){                    
            strList = str.split(" ");

            int sum = Integer.parseInt(strList[0])+Integer.parseInt(strList[1]);

            System.out.println(String.valueOf(sum).length());
	    }
    }
} Main public static void main(String[] a)throws IOException{
    	BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
 		String str = null;
 		String[] strList = new String[2];

 		while((str = in.readLine()) != null){                    
            strList = str.split(" ");

            int sum = Integer.parseInt(strList[0])+Integer.parseInt(strList[1]);

            System.out.println(String.valueOf(sum).length());
	    }
    } main {
    	BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
 		String str = null;
 		String[] strList = new String[2];

 		while((str = in.readLine()) != null){                    
            strList = str.split(" ");

            int sum = Integer.parseInt(strList[0])+Integer.parseInt(strList[1]);

            System.out.println(String.valueOf(sum).length());
	    }
    } BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) String str = null; str null String[] strList = new String[2]; strList new String[2] 2 while((str = in.readLine()) != null){                    
            strList = str.split(" ");

            int sum = Integer.parseInt(strList[0])+Integer.parseInt(strList[1]);

            System.out.println(String.valueOf(sum).length());
	    } (str = in.readLine()) != null (str = in.readLine()) str in.readLine() in.readLine in null {                    
            strList = str.split(" ");

            int sum = Integer.parseInt(strList[0])+Integer.parseInt(strList[1]);

            System.out.println(String.valueOf(sum).length());
	    } strList = str.split(" ") strList str.split(" ") str.split str " " int sum = Integer.parseInt(strList[0])+Integer.parseInt(strList[1]); sum Integer.parseInt(strList[0])+Integer.parseInt(strList[1]) Integer.parseInt(strList[0]) Integer.parseInt Integer strList[0] strList 0 Integer.parseInt(strList[1]) Integer.parseInt Integer strList[1] strList 1 System.out.println(String.valueOf(sum).length()) System.out.println System.out System System.out String.valueOf(sum).length() String.valueOf(sum).length String.valueOf(sum) String.valueOf String sum String[] a a
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main{
    public static void main(String[] a)throws IOException{
    	BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
 		String str = null;
 		String[] strList = new String[2];

 		while((str = in.readLine()) != null){                    
            strList = str.split(" ");

            int sum = Integer.parseInt(strList[0])+Integer.parseInt(strList[1]);

            System.out.println(String.valueOf(sum).length());
	    }
    }
}