import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;

public class Main
{
	public static void main(String[] args) throws NumberFormatException, IOException
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		ArrayList<Integer> lstInt = new ArrayList<Integer>();
		String line = "";
		String[] strArray;
		int result = 0;
		int cnt = 0;

		while (cnt < 200 && (line = br.readLine()) != null)
		{
			strArray = line.split(" ", 0);
			result = Integer.parseInt(strArray[0]) + Integer.parseInt(strArray[1]);
			lstInt.add(Integer.toString(result).length());
			++cnt;
		}

		for (int digit : lstInt)
		{
			System.out.println(digit);
		}

	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.ArrayList; ArrayList java.util public class Main
{
	public static void main(String[] args) throws NumberFormatException, IOException
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		ArrayList<Integer> lstInt = new ArrayList<Integer>();
		String line = "";
		String[] strArray;
		int result = 0;
		int cnt = 0;

		while (cnt < 200 && (line = br.readLine()) != null)
		{
			strArray = line.split(" ", 0);
			result = Integer.parseInt(strArray[0]) + Integer.parseInt(strArray[1]);
			lstInt.add(Integer.toString(result).length());
			++cnt;
		}

		for (int digit : lstInt)
		{
			System.out.println(digit);
		}

	}
} Main public static void main(String[] args) throws NumberFormatException, IOException
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		ArrayList<Integer> lstInt = new ArrayList<Integer>();
		String line = "";
		String[] strArray;
		int result = 0;
		int cnt = 0;

		while (cnt < 200 && (line = br.readLine()) != null)
		{
			strArray = line.split(" ", 0);
			result = Integer.parseInt(strArray[0]) + Integer.parseInt(strArray[1]);
			lstInt.add(Integer.toString(result).length());
			++cnt;
		}

		for (int digit : lstInt)
		{
			System.out.println(digit);
		}

	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		ArrayList<Integer> lstInt = new ArrayList<Integer>();
		String line = "";
		String[] strArray;
		int result = 0;
		int cnt = 0;

		while (cnt < 200 && (line = br.readLine()) != null)
		{
			strArray = line.split(" ", 0);
			result = Integer.parseInt(strArray[0]) + Integer.parseInt(strArray[1]);
			lstInt.add(Integer.toString(result).length());
			++cnt;
		}

		for (int digit : lstInt)
		{
			System.out.println(digit);
		}

	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) ArrayList<Integer> lstInt = new ArrayList<Integer>(); lstInt new ArrayList<Integer>() String line = ""; line "" String[] strArray; strArray int result = 0; result 0 int cnt = 0; cnt 0 while (cnt < 200 && (line = br.readLine()) != null)
		{
			strArray = line.split(" ", 0);
			result = Integer.parseInt(strArray[0]) + Integer.parseInt(strArray[1]);
			lstInt.add(Integer.toString(result).length());
			++cnt;
		} cnt < 200 && (line = br.readLine()) != null cnt < 200 cnt 200 (line = br.readLine()) != null (line = br.readLine()) line br.readLine() br.readLine br null {
			strArray = line.split(" ", 0);
			result = Integer.parseInt(strArray[0]) + Integer.parseInt(strArray[1]);
			lstInt.add(Integer.toString(result).length());
			++cnt;
		} strArray = line.split(" ", 0) strArray line.split(" ", 0) line.split line " " 0 result = Integer.parseInt(strArray[0]) + Integer.parseInt(strArray[1]) result Integer.parseInt(strArray[0]) + Integer.parseInt(strArray[1]) Integer.parseInt(strArray[0]) Integer.parseInt Integer strArray[0] strArray 0 Integer.parseInt(strArray[1]) Integer.parseInt Integer strArray[1] strArray 1 lstInt.add(Integer.toString(result).length()) lstInt.add lstInt Integer.toString(result).length() Integer.toString(result).length Integer.toString(result) Integer.toString Integer result ++cnt cnt for (int digit : lstInt)
		{
			System.out.println(digit);
		} int digit lstInt {
			System.out.println(digit);
		} {
			System.out.println(digit);
		} System.out.println(digit) System.out.println System.out System System.out digit String[] args args public class Main
{
	public static void main(String[] args) throws NumberFormatException, IOException
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		ArrayList<Integer> lstInt = new ArrayList<Integer>();
		String line = "";
		String[] strArray;
		int result = 0;
		int cnt = 0;

		while (cnt < 200 && (line = br.readLine()) != null)
		{
			strArray = line.split(" ", 0);
			result = Integer.parseInt(strArray[0]) + Integer.parseInt(strArray[1]);
			lstInt.add(Integer.toString(result).length());
			++cnt;
		}

		for (int digit : lstInt)
		{
			System.out.println(digit);
		}

	}
} public class Main
{
	public static void main(String[] args) throws NumberFormatException, IOException
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		ArrayList<Integer> lstInt = new ArrayList<Integer>();
		String line = "";
		String[] strArray;
		int result = 0;
		int cnt = 0;

		while (cnt < 200 && (line = br.readLine()) != null)
		{
			strArray = line.split(" ", 0);
			result = Integer.parseInt(strArray[0]) + Integer.parseInt(strArray[1]);
			lstInt.add(Integer.toString(result).length());
			++cnt;
		}

		for (int digit : lstInt)
		{
			System.out.println(digit);
		}

	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;

public class Main
{
	public static void main(String[] args) throws NumberFormatException, IOException
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		ArrayList<Integer> lstInt = new ArrayList<Integer>();
		String line = "";
		String[] strArray;
		int result = 0;
		int cnt = 0;

		while (cnt < 200 && (line = br.readLine()) != null)
		{
			strArray = line.split(" ", 0);
			result = Integer.parseInt(strArray[0]) + Integer.parseInt(strArray[1]);
			lstInt.add(Integer.toString(result).length());
			++cnt;
		}

		for (int digit : lstInt)
		{
			System.out.println(digit);
		}

	}
}