import java.util.*;
import java.io.*;
import java.math.*;
 

class Main
{
	public static void main(String args[])throws IOException
	{
		BufferedReader d=new BufferedReader(new InputStreamReader(System.in));

		String line="";
		while((line=d.readLine())!=null)
		{
			String[] str = line.split(" ");
			int a=Integer.parseInt(str[0]);
			int b=Integer.parseInt(str[1]);
			int sum=a+b;
			int count=1;

			while(sum>=10)
			{
				count++;
				sum/=10;
			}
			System.out.println(count);
		}
	}
} import java.util.*; util.* java import java.io.*; io.* java import java.math.*; math.* java class Main
{
	public static void main(String args[])throws IOException
	{
		BufferedReader d=new BufferedReader(new InputStreamReader(System.in));

		String line="";
		while((line=d.readLine())!=null)
		{
			String[] str = line.split(" ");
			int a=Integer.parseInt(str[0]);
			int b=Integer.parseInt(str[1]);
			int sum=a+b;
			int count=1;

			while(sum>=10)
			{
				count++;
				sum/=10;
			}
			System.out.println(count);
		}
	}
} Main public static void main(String args[])throws IOException
	{
		BufferedReader d=new BufferedReader(new InputStreamReader(System.in));

		String line="";
		while((line=d.readLine())!=null)
		{
			String[] str = line.split(" ");
			int a=Integer.parseInt(str[0]);
			int b=Integer.parseInt(str[1]);
			int sum=a+b;
			int count=1;

			while(sum>=10)
			{
				count++;
				sum/=10;
			}
			System.out.println(count);
		}
	} main {
		BufferedReader d=new BufferedReader(new InputStreamReader(System.in));

		String line="";
		while((line=d.readLine())!=null)
		{
			String[] str = line.split(" ");
			int a=Integer.parseInt(str[0]);
			int b=Integer.parseInt(str[1]);
			int sum=a+b;
			int count=1;

			while(sum>=10)
			{
				count++;
				sum/=10;
			}
			System.out.println(count);
		}
	} BufferedReader d=new BufferedReader(new InputStreamReader(System.in)); d new BufferedReader(new InputStreamReader(System.in)) String line=""; line "" while((line=d.readLine())!=null)
		{
			String[] str = line.split(" ");
			int a=Integer.parseInt(str[0]);
			int b=Integer.parseInt(str[1]);
			int sum=a+b;
			int count=1;

			while(sum>=10)
			{
				count++;
				sum/=10;
			}
			System.out.println(count);
		} (line=d.readLine())!=null (line=d.readLine()) line d.readLine() d.readLine d null {
			String[] str = line.split(" ");
			int a=Integer.parseInt(str[0]);
			int b=Integer.parseInt(str[1]);
			int sum=a+b;
			int count=1;

			while(sum>=10)
			{
				count++;
				sum/=10;
			}
			System.out.println(count);
		} String[] str = line.split(" "); str line.split(" ") line.split line " " int a=Integer.parseInt(str[0]); a Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 int b=Integer.parseInt(str[1]); b Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 int sum=a+b; sum a+b a b int count=1; count 1 while(sum>=10)
			{
				count++;
				sum/=10;
			} sum>=10 sum 10 {
				count++;
				sum/=10;
			} count++ count sum/=10 sum 10 System.out.println(count) System.out.println System.out System System.out count String args[] args
import java.util.*;
import java.io.*;
import java.math.*;
 

class Main
{
	public static void main(String args[])throws IOException
	{
		BufferedReader d=new BufferedReader(new InputStreamReader(System.in));

		String line="";
		while((line=d.readLine())!=null)
		{
			String[] str = line.split(" ");
			int a=Integer.parseInt(str[0]);
			int b=Integer.parseInt(str[1]);
			int sum=a+b;
			int count=1;

			while(sum>=10)
			{
				count++;
				sum/=10;
			}
			System.out.println(count);
		}
	}
}