import java.util.Scanner;

public class Main
{
	public static void main(String[] args)
	{
		Scanner scanner = new Scanner(System.in);
		
		for(;scanner.hasNext();)
		{
			int c = scanner.nextInt() + scanner.nextInt();
			int s = 0;
			for(; c>0; c/=10, s++);
			
			System.out.println(s+"");
		}
	}
} import java.util.Scanner; Scanner java.util public class Main
{
	public static void main(String[] args)
	{
		Scanner scanner = new Scanner(System.in);
		
		for(;scanner.hasNext();)
		{
			int c = scanner.nextInt() + scanner.nextInt();
			int s = 0;
			for(; c>0; c/=10, s++);
			
			System.out.println(s+"");
		}
	}
} Main public static void main(String[] args)
	{
		Scanner scanner = new Scanner(System.in);
		
		for(;scanner.hasNext();)
		{
			int c = scanner.nextInt() + scanner.nextInt();
			int s = 0;
			for(; c>0; c/=10, s++);
			
			System.out.println(s+"");
		}
	} main {
		Scanner scanner = new Scanner(System.in);
		
		for(;scanner.hasNext();)
		{
			int c = scanner.nextInt() + scanner.nextInt();
			int s = 0;
			for(; c>0; c/=10, s++);
			
			System.out.println(s+"");
		}
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) for(;scanner.hasNext();)
		{
			int c = scanner.nextInt() + scanner.nextInt();
			int s = 0;
			for(; c>0; c/=10, s++);
			
			System.out.println(s+"");
		} ; scanner.hasNext() scanner.hasNext scanner {
			int c = scanner.nextInt() + scanner.nextInt();
			int s = 0;
			for(; c>0; c/=10, s++);
			
			System.out.println(s+"");
		} {
			int c = scanner.nextInt() + scanner.nextInt();
			int s = 0;
			for(; c>0; c/=10, s++);
			
			System.out.println(s+"");
		} int c = scanner.nextInt() + scanner.nextInt(); c scanner.nextInt() + scanner.nextInt() scanner.nextInt() scanner.nextInt scanner scanner.nextInt() scanner.nextInt scanner int s = 0; s 0 for(; c>0; c/=10, s++); ; c>0 c 0 c/=10, s++ c/=10 c 10 s++ s ; System.out.println(s+"") System.out.println System.out System System.out s+"" s "" String[] args args public class Main
{
	public static void main(String[] args)
	{
		Scanner scanner = new Scanner(System.in);
		
		for(;scanner.hasNext();)
		{
			int c = scanner.nextInt() + scanner.nextInt();
			int s = 0;
			for(; c>0; c/=10, s++);
			
			System.out.println(s+"");
		}
	}
} public class Main
{
	public static void main(String[] args)
	{
		Scanner scanner = new Scanner(System.in);
		
		for(;scanner.hasNext();)
		{
			int c = scanner.nextInt() + scanner.nextInt();
			int s = 0;
			for(; c>0; c/=10, s++);
			
			System.out.println(s+"");
		}
	}
} Main
import java.util.Scanner;

public class Main
{
	public static void main(String[] args)
	{
		Scanner scanner = new Scanner(System.in);
		
		for(;scanner.hasNext();)
		{
			int c = scanner.nextInt() + scanner.nextInt();
			int s = 0;
			for(; c>0; c/=10, s++);
			
			System.out.println(s+"");
		}
	}
}