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

public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = null;

		while((str = br.readLine()) != null) {
			String[] num = str.split(" ");
			int a = Integer.parseInt(num[0]);
			int b = Integer.parseInt(num[1]);

			int digitnum = String.valueOf(a + b).length();
			System.out.println(digitnum);
		}
	}
} 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 {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = null;

		while((str = br.readLine()) != null) {
			String[] num = str.split(" ");
			int a = Integer.parseInt(num[0]);
			int b = Integer.parseInt(num[1]);

			int digitnum = String.valueOf(a + b).length();
			System.out.println(digitnum);
		}
	}
} Main public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = null;

		while((str = br.readLine()) != null) {
			String[] num = str.split(" ");
			int a = Integer.parseInt(num[0]);
			int b = Integer.parseInt(num[1]);

			int digitnum = String.valueOf(a + b).length();
			System.out.println(digitnum);
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = null;

		while((str = br.readLine()) != null) {
			String[] num = str.split(" ");
			int a = Integer.parseInt(num[0]);
			int b = Integer.parseInt(num[1]);

			int digitnum = String.valueOf(a + b).length();
			System.out.println(digitnum);
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = null; str null while((str = br.readLine()) != null) {
			String[] num = str.split(" ");
			int a = Integer.parseInt(num[0]);
			int b = Integer.parseInt(num[1]);

			int digitnum = String.valueOf(a + b).length();
			System.out.println(digitnum);
		} (str = br.readLine()) != null (str = br.readLine()) str br.readLine() br.readLine br null {
			String[] num = str.split(" ");
			int a = Integer.parseInt(num[0]);
			int b = Integer.parseInt(num[1]);

			int digitnum = String.valueOf(a + b).length();
			System.out.println(digitnum);
		} String[] num = str.split(" "); num str.split(" ") str.split str " " int a = Integer.parseInt(num[0]); a Integer.parseInt(num[0]) Integer.parseInt Integer num[0] num 0 int b = Integer.parseInt(num[1]); b Integer.parseInt(num[1]) Integer.parseInt Integer num[1] num 1 int digitnum = String.valueOf(a + b).length(); digitnum String.valueOf(a + b).length() String.valueOf(a + b).length String.valueOf(a + b) String.valueOf String a + b a b System.out.println(digitnum) System.out.println System.out System System.out digitnum String[] args args public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = null;

		while((str = br.readLine()) != null) {
			String[] num = str.split(" ");
			int a = Integer.parseInt(num[0]);
			int b = Integer.parseInt(num[1]);

			int digitnum = String.valueOf(a + b).length();
			System.out.println(digitnum);
		}
	}
} public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = null;

		while((str = br.readLine()) != null) {
			String[] num = str.split(" ");
			int a = Integer.parseInt(num[0]);
			int b = Integer.parseInt(num[1]);

			int digitnum = String.valueOf(a + b).length();
			System.out.println(digitnum);
		}
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = null;

		while((str = br.readLine()) != null) {
			String[] num = str.split(" ");
			int a = Integer.parseInt(num[0]);
			int b = Integer.parseInt(num[1]);

			int digitnum = String.valueOf(a + b).length();
			System.out.println(digitnum);
		}
	}
}