import java.util.Scanner;

class Main
{
	public static void main(String args[])
	{
		Scanner sc = new Scanner(System.in);
		
		while(true)
		{
			try
			{
				int n = sc.nextInt() + sc.nextInt();
				int i = 1;
				while (n >= 10)
				{
					n /= 10;
					i++;
				}
				System.out.println(Integer.toString(i));
			}
			catch(Exception e)
			{
				break;
			}
		}
	}
} import java.util.Scanner; Scanner java.util class Main
{
	public static void main(String args[])
	{
		Scanner sc = new Scanner(System.in);
		
		while(true)
		{
			try
			{
				int n = sc.nextInt() + sc.nextInt();
				int i = 1;
				while (n >= 10)
				{
					n /= 10;
					i++;
				}
				System.out.println(Integer.toString(i));
			}
			catch(Exception e)
			{
				break;
			}
		}
	}
} Main public static void main(String args[])
	{
		Scanner sc = new Scanner(System.in);
		
		while(true)
		{
			try
			{
				int n = sc.nextInt() + sc.nextInt();
				int i = 1;
				while (n >= 10)
				{
					n /= 10;
					i++;
				}
				System.out.println(Integer.toString(i));
			}
			catch(Exception e)
			{
				break;
			}
		}
	} main {
		Scanner sc = new Scanner(System.in);
		
		while(true)
		{
			try
			{
				int n = sc.nextInt() + sc.nextInt();
				int i = 1;
				while (n >= 10)
				{
					n /= 10;
					i++;
				}
				System.out.println(Integer.toString(i));
			}
			catch(Exception e)
			{
				break;
			}
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while(true)
		{
			try
			{
				int n = sc.nextInt() + sc.nextInt();
				int i = 1;
				while (n >= 10)
				{
					n /= 10;
					i++;
				}
				System.out.println(Integer.toString(i));
			}
			catch(Exception e)
			{
				break;
			}
		} true {
			try
			{
				int n = sc.nextInt() + sc.nextInt();
				int i = 1;
				while (n >= 10)
				{
					n /= 10;
					i++;
				}
				System.out.println(Integer.toString(i));
			}
			catch(Exception e)
			{
				break;
			}
		} try
			{
				int n = sc.nextInt() + sc.nextInt();
				int i = 1;
				while (n >= 10)
				{
					n /= 10;
					i++;
				}
				System.out.println(Integer.toString(i));
			}
			catch(Exception e)
			{
				break;
			} catch(Exception e)
			{
				break;
			} Exception e {
				break;
			} break; {
				int n = sc.nextInt() + sc.nextInt();
				int i = 1;
				while (n >= 10)
				{
					n /= 10;
					i++;
				}
				System.out.println(Integer.toString(i));
			} int n = sc.nextInt() + sc.nextInt(); n sc.nextInt() + sc.nextInt() sc.nextInt() sc.nextInt sc sc.nextInt() sc.nextInt sc int i = 1; i 1 while (n >= 10)
				{
					n /= 10;
					i++;
				} n >= 10 n 10 {
					n /= 10;
					i++;
				} n /= 10 n 10 i++ i System.out.println(Integer.toString(i)) System.out.println System.out System System.out Integer.toString(i) Integer.toString Integer i String args[] args
import java.util.Scanner;

class Main
{
	public static void main(String args[])
	{
		Scanner sc = new Scanner(System.in);
		
		while(true)
		{
			try
			{
				int n = sc.nextInt() + sc.nextInt();
				int i = 1;
				while (n >= 10)
				{
					n /= 10;
					i++;
				}
				System.out.println(Integer.toString(i));
			}
			catch(Exception e)
			{
				break;
			}
		}
	}
}