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

class Main
{

	public static void main(String[] args)throws IOException
	{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String str;
		while((str=br.readLine())!=null)
		{
			String[] buf=str.split(" ");
			int ans=1+(int)Math.log10((double)(Integer.parseInt(buf[0])+Integer.parseInt(buf[1])));
			System.out.println(ans);
		}


	}

} 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[] args)throws IOException
	{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String str;
		while((str=br.readLine())!=null)
		{
			String[] buf=str.split(" ");
			int ans=1+(int)Math.log10((double)(Integer.parseInt(buf[0])+Integer.parseInt(buf[1])));
			System.out.println(ans);
		}


	}

} Main public static void main(String[] args)throws IOException
	{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String str;
		while((str=br.readLine())!=null)
		{
			String[] buf=str.split(" ");
			int ans=1+(int)Math.log10((double)(Integer.parseInt(buf[0])+Integer.parseInt(buf[1])));
			System.out.println(ans);
		}


	} main {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String str;
		while((str=br.readLine())!=null)
		{
			String[] buf=str.split(" ");
			int ans=1+(int)Math.log10((double)(Integer.parseInt(buf[0])+Integer.parseInt(buf[1])));
			System.out.println(ans);
		}


	} BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str; str while((str=br.readLine())!=null)
		{
			String[] buf=str.split(" ");
			int ans=1+(int)Math.log10((double)(Integer.parseInt(buf[0])+Integer.parseInt(buf[1])));
			System.out.println(ans);
		} (str=br.readLine())!=null (str=br.readLine()) str br.readLine() br.readLine br null {
			String[] buf=str.split(" ");
			int ans=1+(int)Math.log10((double)(Integer.parseInt(buf[0])+Integer.parseInt(buf[1])));
			System.out.println(ans);
		} String[] buf=str.split(" "); buf str.split(" ") str.split str " " int ans=1+(int)Math.log10((double)(Integer.parseInt(buf[0])+Integer.parseInt(buf[1]))); ans 1+(int)Math.log10((double)(Integer.parseInt(buf[0])+Integer.parseInt(buf[1]))) 1 (int)Math.log10((double)(Integer.parseInt(buf[0])+Integer.parseInt(buf[1]))) Math.log10 Math (double)(Integer.parseInt(buf[0])+Integer.parseInt(buf[1])) Integer.parseInt(buf[0]) Integer.parseInt Integer buf[0] buf 0 Integer.parseInt(buf[1]) Integer.parseInt Integer buf[1] buf 1 System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main
{

	public static void main(String[] args)throws IOException
	{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String str;
		while((str=br.readLine())!=null)
		{
			String[] buf=str.split(" ");
			int ans=1+(int)Math.log10((double)(Integer.parseInt(buf[0])+Integer.parseInt(buf[1])));
			System.out.println(ans);
		}


	}

}