import java.util.Scanner;

public class Main
{
	public static void main(String[] args)
	{
		Scanner cin = new Scanner(System.in);
		
		int a,b;

		while(cin.hasNext())
		{
			a=cin.nextInt();
			b=cin.nextInt();
		
			String s = ((Integer)(a+b)).toString();
			System.out.println(s.length());
		}
	}
} import java.util.Scanner; Scanner java.util public class Main
{
	public static void main(String[] args)
	{
		Scanner cin = new Scanner(System.in);
		
		int a,b;

		while(cin.hasNext())
		{
			a=cin.nextInt();
			b=cin.nextInt();
		
			String s = ((Integer)(a+b)).toString();
			System.out.println(s.length());
		}
	}
} Main public static void main(String[] args)
	{
		Scanner cin = new Scanner(System.in);
		
		int a,b;

		while(cin.hasNext())
		{
			a=cin.nextInt();
			b=cin.nextInt();
		
			String s = ((Integer)(a+b)).toString();
			System.out.println(s.length());
		}
	} main {
		Scanner cin = new Scanner(System.in);
		
		int a,b;

		while(cin.hasNext())
		{
			a=cin.nextInt();
			b=cin.nextInt();
		
			String s = ((Integer)(a+b)).toString();
			System.out.println(s.length());
		}
	} Scanner cin = new Scanner(System.in); cin new Scanner(System.in) int a a b; b while(cin.hasNext())
		{
			a=cin.nextInt();
			b=cin.nextInt();
		
			String s = ((Integer)(a+b)).toString();
			System.out.println(s.length());
		} cin.hasNext() cin.hasNext cin {
			a=cin.nextInt();
			b=cin.nextInt();
		
			String s = ((Integer)(a+b)).toString();
			System.out.println(s.length());
		} a=cin.nextInt() a cin.nextInt() cin.nextInt cin b=cin.nextInt() b cin.nextInt() cin.nextInt cin String s = ((Integer)(a+b)).toString(); s ((Integer)(a+b)).toString() ((Integer)(a+b)).toString ((Integer)(a+b)) a b System.out.println(s.length()) System.out.println System.out System System.out s.length() s.length s String[] args args public class Main
{
	public static void main(String[] args)
	{
		Scanner cin = new Scanner(System.in);
		
		int a,b;

		while(cin.hasNext())
		{
			a=cin.nextInt();
			b=cin.nextInt();
		
			String s = ((Integer)(a+b)).toString();
			System.out.println(s.length());
		}
	}
} public class Main
{
	public static void main(String[] args)
	{
		Scanner cin = new Scanner(System.in);
		
		int a,b;

		while(cin.hasNext())
		{
			a=cin.nextInt();
			b=cin.nextInt();
		
			String s = ((Integer)(a+b)).toString();
			System.out.println(s.length());
		}
	}
} Main
import java.util.Scanner;

public class Main
{
	public static void main(String[] args)
	{
		Scanner cin = new Scanner(System.in);
		
		int a,b;

		while(cin.hasNext())
		{
			a=cin.nextInt();
			b=cin.nextInt();
		
			String s = ((Integer)(a+b)).toString();
			System.out.println(s.length());
		}
	}
}