import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.StringTokenizer;


public class Main
{
	public static void main(String[] args) throws Exception
	{
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String line;
		while ((line = in.readLine()) != null)
		{
			StringTokenizer st = new StringTokenizer(line);
			int a = Integer.parseInt(st.nextToken()), b = Integer.parseInt(st.nextToken());
			int c = a+b;
			int cnt = 0;
			while (c > 0)
			{
				cnt++;
				c/=10;
			}
			System.out.println(cnt);
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.StringTokenizer; StringTokenizer java.util public class Main
{
	public static void main(String[] args) throws Exception
	{
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String line;
		while ((line = in.readLine()) != null)
		{
			StringTokenizer st = new StringTokenizer(line);
			int a = Integer.parseInt(st.nextToken()), b = Integer.parseInt(st.nextToken());
			int c = a+b;
			int cnt = 0;
			while (c > 0)
			{
				cnt++;
				c/=10;
			}
			System.out.println(cnt);
		}
	}
} Main public static void main(String[] args) throws Exception
	{
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String line;
		while ((line = in.readLine()) != null)
		{
			StringTokenizer st = new StringTokenizer(line);
			int a = Integer.parseInt(st.nextToken()), b = Integer.parseInt(st.nextToken());
			int c = a+b;
			int cnt = 0;
			while (c > 0)
			{
				cnt++;
				c/=10;
			}
			System.out.println(cnt);
		}
	} main {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String line;
		while ((line = in.readLine()) != null)
		{
			StringTokenizer st = new StringTokenizer(line);
			int a = Integer.parseInt(st.nextToken()), b = Integer.parseInt(st.nextToken());
			int c = a+b;
			int cnt = 0;
			while (c > 0)
			{
				cnt++;
				c/=10;
			}
			System.out.println(cnt);
		}
	} BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) String line; line while ((line = in.readLine()) != null)
		{
			StringTokenizer st = new StringTokenizer(line);
			int a = Integer.parseInt(st.nextToken()), b = Integer.parseInt(st.nextToken());
			int c = a+b;
			int cnt = 0;
			while (c > 0)
			{
				cnt++;
				c/=10;
			}
			System.out.println(cnt);
		} (line = in.readLine()) != null (line = in.readLine()) line in.readLine() in.readLine in null {
			StringTokenizer st = new StringTokenizer(line);
			int a = Integer.parseInt(st.nextToken()), b = Integer.parseInt(st.nextToken());
			int c = a+b;
			int cnt = 0;
			while (c > 0)
			{
				cnt++;
				c/=10;
			}
			System.out.println(cnt);
		} StringTokenizer st = new StringTokenizer(line); st new StringTokenizer(line) int a = Integer.parseInt(st.nextToken()) a Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st b = Integer.parseInt(st.nextToken()); b Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st int c = a+b; c a+b a b int cnt = 0; cnt 0 while (c > 0)
			{
				cnt++;
				c/=10;
			} c > 0 c 0 {
				cnt++;
				c/=10;
			} cnt++ cnt c/=10 c 10 System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args public class Main
{
	public static void main(String[] args) throws Exception
	{
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String line;
		while ((line = in.readLine()) != null)
		{
			StringTokenizer st = new StringTokenizer(line);
			int a = Integer.parseInt(st.nextToken()), b = Integer.parseInt(st.nextToken());
			int c = a+b;
			int cnt = 0;
			while (c > 0)
			{
				cnt++;
				c/=10;
			}
			System.out.println(cnt);
		}
	}
} public class Main
{
	public static void main(String[] args) throws Exception
	{
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String line;
		while ((line = in.readLine()) != null)
		{
			StringTokenizer st = new StringTokenizer(line);
			int a = Integer.parseInt(st.nextToken()), b = Integer.parseInt(st.nextToken());
			int c = a+b;
			int cnt = 0;
			while (c > 0)
			{
				cnt++;
				c/=10;
			}
			System.out.println(cnt);
		}
	}
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.StringTokenizer;


public class Main
{
	public static void main(String[] args) throws Exception
	{
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String line;
		while ((line = in.readLine()) != null)
		{
			StringTokenizer st = new StringTokenizer(line);
			int a = Integer.parseInt(st.nextToken()), b = Integer.parseInt(st.nextToken());
			int c = a+b;
			int cnt = 0;
			while (c > 0)
			{
				cnt++;
				c/=10;
			}
			System.out.println(cnt);
		}
	}
}