import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {

	public static void main(String[] args)
	{
		Scanner stdIn = new Scanner(System.in);

		List<Integer> list = new ArrayList<Integer>();

		while (stdIn.hasNext())
		{
			int a = stdIn.nextInt();
			int b = stdIn.nextInt();

			list.add(String.valueOf((a + b)).length());
		}

		for (int value : list)
		{
			System.out.println(value);
		}
	}
} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args)
	{
		Scanner stdIn = new Scanner(System.in);

		List<Integer> list = new ArrayList<Integer>();

		while (stdIn.hasNext())
		{
			int a = stdIn.nextInt();
			int b = stdIn.nextInt();

			list.add(String.valueOf((a + b)).length());
		}

		for (int value : list)
		{
			System.out.println(value);
		}
	}
} Main public static void main(String[] args)
	{
		Scanner stdIn = new Scanner(System.in);

		List<Integer> list = new ArrayList<Integer>();

		while (stdIn.hasNext())
		{
			int a = stdIn.nextInt();
			int b = stdIn.nextInt();

			list.add(String.valueOf((a + b)).length());
		}

		for (int value : list)
		{
			System.out.println(value);
		}
	} main {
		Scanner stdIn = new Scanner(System.in);

		List<Integer> list = new ArrayList<Integer>();

		while (stdIn.hasNext())
		{
			int a = stdIn.nextInt();
			int b = stdIn.nextInt();

			list.add(String.valueOf((a + b)).length());
		}

		for (int value : list)
		{
			System.out.println(value);
		}
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) List<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() while (stdIn.hasNext())
		{
			int a = stdIn.nextInt();
			int b = stdIn.nextInt();

			list.add(String.valueOf((a + b)).length());
		} stdIn.hasNext() stdIn.hasNext stdIn {
			int a = stdIn.nextInt();
			int b = stdIn.nextInt();

			list.add(String.valueOf((a + b)).length());
		} int a = stdIn.nextInt(); a stdIn.nextInt() stdIn.nextInt stdIn int b = stdIn.nextInt(); b stdIn.nextInt() stdIn.nextInt stdIn list.add(String.valueOf((a + b)).length()) list.add list String.valueOf((a + b)).length() String.valueOf((a + b)).length String.valueOf((a + b)) String.valueOf String (a + b) a b for (int value : list)
		{
			System.out.println(value);
		} int value list {
			System.out.println(value);
		} {
			System.out.println(value);
		} System.out.println(value) System.out.println System.out System System.out value String[] args args public class Main {

	public static void main(String[] args)
	{
		Scanner stdIn = new Scanner(System.in);

		List<Integer> list = new ArrayList<Integer>();

		while (stdIn.hasNext())
		{
			int a = stdIn.nextInt();
			int b = stdIn.nextInt();

			list.add(String.valueOf((a + b)).length());
		}

		for (int value : list)
		{
			System.out.println(value);
		}
	}
} public class Main {

	public static void main(String[] args)
	{
		Scanner stdIn = new Scanner(System.in);

		List<Integer> list = new ArrayList<Integer>();

		while (stdIn.hasNext())
		{
			int a = stdIn.nextInt();
			int b = stdIn.nextInt();

			list.add(String.valueOf((a + b)).length());
		}

		for (int value : list)
		{
			System.out.println(value);
		}
	}
} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {

	public static void main(String[] args)
	{
		Scanner stdIn = new Scanner(System.in);

		List<Integer> list = new ArrayList<Integer>();

		while (stdIn.hasNext())
		{
			int a = stdIn.nextInt();
			int b = stdIn.nextInt();

			list.add(String.valueOf((a + b)).length());
		}

		for (int value : list)
		{
			System.out.println(value);
		}
	}
}