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

public class Main {

	public static void main(String[] args) throws IOException {
		//?????°?¨????
		String line, output;
		int num1, num2;

		//????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		while ((line =br.readLine()) != null) {
			//??????
			String[] numString = line.split(" ", 0);
			//??????
			num1 = Integer.parseInt(numString[0]);
			num2 = Integer.parseInt(numString[1]);
			//?¨????
			num1 = num1 + num2;
			//??????
			output = String.valueOf(num1);
			System.out.println(output.length());
		}
	}

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

	public static void main(String[] args) throws IOException {
		//?????°?¨????
		String line, output;
		int num1, num2;

		//????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		while ((line =br.readLine()) != null) {
			//??????
			String[] numString = line.split(" ", 0);
			//??????
			num1 = Integer.parseInt(numString[0]);
			num2 = Integer.parseInt(numString[1]);
			//?¨????
			num1 = num1 + num2;
			//??????
			output = String.valueOf(num1);
			System.out.println(output.length());
		}
	}

} Main public static void main(String[] args) throws IOException {
		//?????°?¨????
		String line, output;
		int num1, num2;

		//????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		while ((line =br.readLine()) != null) {
			//??????
			String[] numString = line.split(" ", 0);
			//??????
			num1 = Integer.parseInt(numString[0]);
			num2 = Integer.parseInt(numString[1]);
			//?¨????
			num1 = num1 + num2;
			//??????
			output = String.valueOf(num1);
			System.out.println(output.length());
		}
	} main {
		//?????°?¨????
		String line, output;
		int num1, num2;

		//????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		while ((line =br.readLine()) != null) {
			//??????
			String[] numString = line.split(" ", 0);
			//??????
			num1 = Integer.parseInt(numString[0]);
			num2 = Integer.parseInt(numString[1]);
			//?¨????
			num1 = num1 + num2;
			//??????
			output = String.valueOf(num1);
			System.out.println(output.length());
		}
	} String line line output; output int num1 num1 num2; num2 BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) while ((line =br.readLine()) != null) {
			//??????
			String[] numString = line.split(" ", 0);
			//??????
			num1 = Integer.parseInt(numString[0]);
			num2 = Integer.parseInt(numString[1]);
			//?¨????
			num1 = num1 + num2;
			//??????
			output = String.valueOf(num1);
			System.out.println(output.length());
		} (line =br.readLine()) != null (line =br.readLine()) line br.readLine() br.readLine br null {
			//??????
			String[] numString = line.split(" ", 0);
			//??????
			num1 = Integer.parseInt(numString[0]);
			num2 = Integer.parseInt(numString[1]);
			//?¨????
			num1 = num1 + num2;
			//??????
			output = String.valueOf(num1);
			System.out.println(output.length());
		} String[] numString = line.split(" ", 0); numString line.split(" ", 0) line.split line " " 0 num1 = Integer.parseInt(numString[0]) num1 Integer.parseInt(numString[0]) Integer.parseInt Integer numString[0] numString 0 num2 = Integer.parseInt(numString[1]) num2 Integer.parseInt(numString[1]) Integer.parseInt Integer numString[1] numString 1 num1 = num1 + num2 num1 num1 + num2 num1 num2 output = String.valueOf(num1) output String.valueOf(num1) String.valueOf String num1 System.out.println(output.length()) System.out.println System.out System System.out output.length() output.length output String[] args args public class Main {

	public static void main(String[] args) throws IOException {
		//?????°?¨????
		String line, output;
		int num1, num2;

		//????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		while ((line =br.readLine()) != null) {
			//??????
			String[] numString = line.split(" ", 0);
			//??????
			num1 = Integer.parseInt(numString[0]);
			num2 = Integer.parseInt(numString[1]);
			//?¨????
			num1 = num1 + num2;
			//??????
			output = String.valueOf(num1);
			System.out.println(output.length());
		}
	}

} public class Main {

	public static void main(String[] args) throws IOException {
		//?????°?¨????
		String line, output;
		int num1, num2;

		//????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		while ((line =br.readLine()) != null) {
			//??????
			String[] numString = line.split(" ", 0);
			//??????
			num1 = Integer.parseInt(numString[0]);
			num2 = Integer.parseInt(numString[1]);
			//?¨????
			num1 = num1 + num2;
			//??????
			output = String.valueOf(num1);
			System.out.println(output.length());
		}
	}

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

public class Main {

	public static void main(String[] args) throws IOException {
		//?????°?¨????
		String line, output;
		int num1, num2;

		//????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		while ((line =br.readLine()) != null) {
			//??????
			String[] numString = line.split(" ", 0);
			//??????
			num1 = Integer.parseInt(numString[0]);
			num2 = Integer.parseInt(numString[1]);
			//?¨????
			num1 = num1 + num2;
			//??????
			output = String.valueOf(num1);
			System.out.println(output.length());
		}
	}

}