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

public class Main {
	public static void main(String[] args) {
		print();
	}

	private static void print() {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {
			String str = br.readLine();
			while (str != null) {

				String[] nums = str.split(" ", 0);

				int x = Integer.parseInt(nums[0]);
				int y = Integer.parseInt(nums[1]);

				int keta = Integer.toString(x+y).length();

				System.out.println(keta);
				str = br.readLine();

			}
		} catch (IOException e) {
			e.printStackTrace();
		}

	}

} 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) {
		print();
	}

	private static void print() {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {
			String str = br.readLine();
			while (str != null) {

				String[] nums = str.split(" ", 0);

				int x = Integer.parseInt(nums[0]);
				int y = Integer.parseInt(nums[1]);

				int keta = Integer.toString(x+y).length();

				System.out.println(keta);
				str = br.readLine();

			}
		} catch (IOException e) {
			e.printStackTrace();
		}

	}

} Main public static void main(String[] args) {
		print();
	} main {
		print();
	} print() print String[] args args private static void print() {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {
			String str = br.readLine();
			while (str != null) {

				String[] nums = str.split(" ", 0);

				int x = Integer.parseInt(nums[0]);
				int y = Integer.parseInt(nums[1]);

				int keta = Integer.toString(x+y).length();

				System.out.println(keta);
				str = br.readLine();

			}
		} catch (IOException e) {
			e.printStackTrace();
		}

	} print {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {
			String str = br.readLine();
			while (str != null) {

				String[] nums = str.split(" ", 0);

				int x = Integer.parseInt(nums[0]);
				int y = Integer.parseInt(nums[1]);

				int keta = Integer.toString(x+y).length();

				System.out.println(keta);
				str = br.readLine();

			}
		} catch (IOException e) {
			e.printStackTrace();
		}

	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) try {
			String str = br.readLine();
			while (str != null) {

				String[] nums = str.split(" ", 0);

				int x = Integer.parseInt(nums[0]);
				int y = Integer.parseInt(nums[1]);

				int keta = Integer.toString(x+y).length();

				System.out.println(keta);
				str = br.readLine();

			}
		} catch (IOException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} IOException e {
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			String str = br.readLine();
			while (str != null) {

				String[] nums = str.split(" ", 0);

				int x = Integer.parseInt(nums[0]);
				int y = Integer.parseInt(nums[1]);

				int keta = Integer.toString(x+y).length();

				System.out.println(keta);
				str = br.readLine();

			}
		} String str = br.readLine(); str br.readLine() br.readLine br while (str != null) {

				String[] nums = str.split(" ", 0);

				int x = Integer.parseInt(nums[0]);
				int y = Integer.parseInt(nums[1]);

				int keta = Integer.toString(x+y).length();

				System.out.println(keta);
				str = br.readLine();

			} str != null str null {

				String[] nums = str.split(" ", 0);

				int x = Integer.parseInt(nums[0]);
				int y = Integer.parseInt(nums[1]);

				int keta = Integer.toString(x+y).length();

				System.out.println(keta);
				str = br.readLine();

			} String[] nums = str.split(" ", 0); nums str.split(" ", 0) str.split str " " 0 int x = Integer.parseInt(nums[0]); x Integer.parseInt(nums[0]) Integer.parseInt Integer nums[0] nums 0 int y = Integer.parseInt(nums[1]); y Integer.parseInt(nums[1]) Integer.parseInt Integer nums[1] nums 1 int keta = Integer.toString(x+y).length(); keta Integer.toString(x+y).length() Integer.toString(x+y).length Integer.toString(x+y) Integer.toString Integer x+y x y System.out.println(keta) System.out.println System.out System System.out keta str = br.readLine() str br.readLine() br.readLine br public class Main {
	public static void main(String[] args) {
		print();
	}

	private static void print() {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {
			String str = br.readLine();
			while (str != null) {

				String[] nums = str.split(" ", 0);

				int x = Integer.parseInt(nums[0]);
				int y = Integer.parseInt(nums[1]);

				int keta = Integer.toString(x+y).length();

				System.out.println(keta);
				str = br.readLine();

			}
		} catch (IOException e) {
			e.printStackTrace();
		}

	}

} public class Main {
	public static void main(String[] args) {
		print();
	}

	private static void print() {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {
			String str = br.readLine();
			while (str != null) {

				String[] nums = str.split(" ", 0);

				int x = Integer.parseInt(nums[0]);
				int y = Integer.parseInt(nums[1]);

				int keta = Integer.toString(x+y).length();

				System.out.println(keta);
				str = br.readLine();

			}
		} catch (IOException e) {
			e.printStackTrace();
		}

	}

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

public class Main {
	public static void main(String[] args) {
		print();
	}

	private static void print() {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {
			String str = br.readLine();
			while (str != null) {

				String[] nums = str.split(" ", 0);

				int x = Integer.parseInt(nums[0]);
				int y = Integer.parseInt(nums[1]);

				int keta = Integer.toString(x+y).length();

				System.out.println(keta);
				str = br.readLine();

			}
		} catch (IOException e) {
			e.printStackTrace();
		}

	}

}