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

public class Main {

	/**
	 * AOJ002 Digit Number
	 *
	 * @param args
	 * @throws IOException
	 *             ??\?????¨??????
	 */
	public static void main(String[] args) throws IOException {

		BufferedReader bufferedReader = new BufferedReader(
				new InputStreamReader(System.in));

		String strInput = bufferedReader.readLine();
		while (strInput != null) {
			String[] strDigit = strInput.split("\\s");

			int sum = Integer.parseInt(strDigit[0])
					+ Integer.parseInt(strDigit[1]);

			System.out.println(Integer.toString(sum).length());
			strInput = bufferedReader.readLine();
		}

		bufferedReader.close();
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	/**
	 * AOJ002 Digit Number
	 *
	 * @param args
	 * @throws IOException
	 *             ??\?????¨??????
	 */
	public static void main(String[] args) throws IOException {

		BufferedReader bufferedReader = new BufferedReader(
				new InputStreamReader(System.in));

		String strInput = bufferedReader.readLine();
		while (strInput != null) {
			String[] strDigit = strInput.split("\\s");

			int sum = Integer.parseInt(strDigit[0])
					+ Integer.parseInt(strDigit[1]);

			System.out.println(Integer.toString(sum).length());
			strInput = bufferedReader.readLine();
		}

		bufferedReader.close();
	}

} Main /**
	 * AOJ002 Digit Number
	 *
	 * @param args
	 * @throws IOException
	 *             ??\?????¨??????
	 */
	public static void main(String[] args) throws IOException {

		BufferedReader bufferedReader = new BufferedReader(
				new InputStreamReader(System.in));

		String strInput = bufferedReader.readLine();
		while (strInput != null) {
			String[] strDigit = strInput.split("\\s");

			int sum = Integer.parseInt(strDigit[0])
					+ Integer.parseInt(strDigit[1]);

			System.out.println(Integer.toString(sum).length());
			strInput = bufferedReader.readLine();
		}

		bufferedReader.close();
	} main {

		BufferedReader bufferedReader = new BufferedReader(
				new InputStreamReader(System.in));

		String strInput = bufferedReader.readLine();
		while (strInput != null) {
			String[] strDigit = strInput.split("\\s");

			int sum = Integer.parseInt(strDigit[0])
					+ Integer.parseInt(strDigit[1]);

			System.out.println(Integer.toString(sum).length());
			strInput = bufferedReader.readLine();
		}

		bufferedReader.close();
	} BufferedReader bufferedReader = new BufferedReader(
				new InputStreamReader(System.in)); bufferedReader new BufferedReader(
				new InputStreamReader(System.in)) String strInput = bufferedReader.readLine(); strInput bufferedReader.readLine() bufferedReader.readLine bufferedReader while (strInput != null) {
			String[] strDigit = strInput.split("\\s");

			int sum = Integer.parseInt(strDigit[0])
					+ Integer.parseInt(strDigit[1]);

			System.out.println(Integer.toString(sum).length());
			strInput = bufferedReader.readLine();
		} strInput != null strInput null {
			String[] strDigit = strInput.split("\\s");

			int sum = Integer.parseInt(strDigit[0])
					+ Integer.parseInt(strDigit[1]);

			System.out.println(Integer.toString(sum).length());
			strInput = bufferedReader.readLine();
		} String[] strDigit = strInput.split("\\s"); strDigit strInput.split("\\s") strInput.split strInput "\\s" int sum = Integer.parseInt(strDigit[0])
					+ Integer.parseInt(strDigit[1]); sum Integer.parseInt(strDigit[0])
					+ Integer.parseInt(strDigit[1]) Integer.parseInt(strDigit[0]) Integer.parseInt Integer strDigit[0] strDigit 0 Integer.parseInt(strDigit[1]) Integer.parseInt Integer strDigit[1] strDigit 1 System.out.println(Integer.toString(sum).length()) System.out.println System.out System System.out Integer.toString(sum).length() Integer.toString(sum).length Integer.toString(sum) Integer.toString Integer sum strInput = bufferedReader.readLine() strInput bufferedReader.readLine() bufferedReader.readLine bufferedReader bufferedReader.close() bufferedReader.close bufferedReader String[] args args public class Main {

	/**
	 * AOJ002 Digit Number
	 *
	 * @param args
	 * @throws IOException
	 *             ??\?????¨??????
	 */
	public static void main(String[] args) throws IOException {

		BufferedReader bufferedReader = new BufferedReader(
				new InputStreamReader(System.in));

		String strInput = bufferedReader.readLine();
		while (strInput != null) {
			String[] strDigit = strInput.split("\\s");

			int sum = Integer.parseInt(strDigit[0])
					+ Integer.parseInt(strDigit[1]);

			System.out.println(Integer.toString(sum).length());
			strInput = bufferedReader.readLine();
		}

		bufferedReader.close();
	}

} public class Main {

	/**
	 * AOJ002 Digit Number
	 *
	 * @param args
	 * @throws IOException
	 *             ??\?????¨??????
	 */
	public static void main(String[] args) throws IOException {

		BufferedReader bufferedReader = new BufferedReader(
				new InputStreamReader(System.in));

		String strInput = bufferedReader.readLine();
		while (strInput != null) {
			String[] strDigit = strInput.split("\\s");

			int sum = Integer.parseInt(strDigit[0])
					+ Integer.parseInt(strDigit[1]);

			System.out.println(Integer.toString(sum).length());
			strInput = bufferedReader.readLine();
		}

		bufferedReader.close();
	}

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

public class Main {

	/**
	 * AOJ002 Digit Number
	 *
	 * @param args
	 * @throws IOException
	 *             ??\?????¨??????
	 */
	public static void main(String[] args) throws IOException {

		BufferedReader bufferedReader = new BufferedReader(
				new InputStreamReader(System.in));

		String strInput = bufferedReader.readLine();
		while (strInput != null) {
			String[] strDigit = strInput.split("\\s");

			int sum = Integer.parseInt(strDigit[0])
					+ Integer.parseInt(strDigit[1]);

			System.out.println(Integer.toString(sum).length());
			strInput = bufferedReader.readLine();
		}

		bufferedReader.close();
	}

}