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

public class Main {
	public static void main(String[] a) {
		BufferedReader br;
		br = new BufferedReader(new InputStreamReader(System.in));
		int[] num = new int[2];
		String str;
		try {
			while ((str = br.readLine()) != null) {

				String[] array = str.split(" ");
				for (int h = 0; h < array.length / 2; h++) {
					for (int i = 0; i < 2; i++) {
						num[i] = Integer.parseInt(array[i + h * 2]);
					}
					int answer = (int) Math.log10(num[0] + num[1]) + 1;
					System.out.println(answer);
				}
			}
		} 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[] a) {
		BufferedReader br;
		br = new BufferedReader(new InputStreamReader(System.in));
		int[] num = new int[2];
		String str;
		try {
			while ((str = br.readLine()) != null) {

				String[] array = str.split(" ");
				for (int h = 0; h < array.length / 2; h++) {
					for (int i = 0; i < 2; i++) {
						num[i] = Integer.parseInt(array[i + h * 2]);
					}
					int answer = (int) Math.log10(num[0] + num[1]) + 1;
					System.out.println(answer);
				}
			}
		} catch (IOException e) {
			e.printStackTrace();
		}

	}
} Main public static void main(String[] a) {
		BufferedReader br;
		br = new BufferedReader(new InputStreamReader(System.in));
		int[] num = new int[2];
		String str;
		try {
			while ((str = br.readLine()) != null) {

				String[] array = str.split(" ");
				for (int h = 0; h < array.length / 2; h++) {
					for (int i = 0; i < 2; i++) {
						num[i] = Integer.parseInt(array[i + h * 2]);
					}
					int answer = (int) Math.log10(num[0] + num[1]) + 1;
					System.out.println(answer);
				}
			}
		} catch (IOException e) {
			e.printStackTrace();
		}

	} main {
		BufferedReader br;
		br = new BufferedReader(new InputStreamReader(System.in));
		int[] num = new int[2];
		String str;
		try {
			while ((str = br.readLine()) != null) {

				String[] array = str.split(" ");
				for (int h = 0; h < array.length / 2; h++) {
					for (int i = 0; i < 2; i++) {
						num[i] = Integer.parseInt(array[i + h * 2]);
					}
					int answer = (int) Math.log10(num[0] + num[1]) + 1;
					System.out.println(answer);
				}
			}
		} catch (IOException e) {
			e.printStackTrace();
		}

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

				String[] array = str.split(" ");
				for (int h = 0; h < array.length / 2; h++) {
					for (int i = 0; i < 2; i++) {
						num[i] = Integer.parseInt(array[i + h * 2]);
					}
					int answer = (int) Math.log10(num[0] + num[1]) + 1;
					System.out.println(answer);
				}
			}
		} catch (IOException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} IOException e {
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			while ((str = br.readLine()) != null) {

				String[] array = str.split(" ");
				for (int h = 0; h < array.length / 2; h++) {
					for (int i = 0; i < 2; i++) {
						num[i] = Integer.parseInt(array[i + h * 2]);
					}
					int answer = (int) Math.log10(num[0] + num[1]) + 1;
					System.out.println(answer);
				}
			}
		} while ((str = br.readLine()) != null) {

				String[] array = str.split(" ");
				for (int h = 0; h < array.length / 2; h++) {
					for (int i = 0; i < 2; i++) {
						num[i] = Integer.parseInt(array[i + h * 2]);
					}
					int answer = (int) Math.log10(num[0] + num[1]) + 1;
					System.out.println(answer);
				}
			} (str = br.readLine()) != null (str = br.readLine()) str br.readLine() br.readLine br null {

				String[] array = str.split(" ");
				for (int h = 0; h < array.length / 2; h++) {
					for (int i = 0; i < 2; i++) {
						num[i] = Integer.parseInt(array[i + h * 2]);
					}
					int answer = (int) Math.log10(num[0] + num[1]) + 1;
					System.out.println(answer);
				}
			} String[] array = str.split(" "); array str.split(" ") str.split str " " for (int h = 0; h < array.length / 2; h++) {
					for (int i = 0; i < 2; i++) {
						num[i] = Integer.parseInt(array[i + h * 2]);
					}
					int answer = (int) Math.log10(num[0] + num[1]) + 1;
					System.out.println(answer);
				} int h = 0; int h = 0; h 0 h < array.length / 2 h array.length / 2 array.length array array.length 2 h++ h++ h {
					for (int i = 0; i < 2; i++) {
						num[i] = Integer.parseInt(array[i + h * 2]);
					}
					int answer = (int) Math.log10(num[0] + num[1]) + 1;
					System.out.println(answer);
				} {
					for (int i = 0; i < 2; i++) {
						num[i] = Integer.parseInt(array[i + h * 2]);
					}
					int answer = (int) Math.log10(num[0] + num[1]) + 1;
					System.out.println(answer);
				} for (int i = 0; i < 2; i++) {
						num[i] = Integer.parseInt(array[i + h * 2]);
					} int i = 0; int i = 0; i 0 i < 2 i 2 i++ i++ i {
						num[i] = Integer.parseInt(array[i + h * 2]);
					} {
						num[i] = Integer.parseInt(array[i + h * 2]);
					} num[i] = Integer.parseInt(array[i + h * 2]) num[i] num i Integer.parseInt(array[i + h * 2]) Integer.parseInt Integer array[i + h * 2] array i + h * 2 i h * 2 h 2 int answer = (int) Math.log10(num[0] + num[1]) + 1; answer (int) Math.log10(num[0] + num[1]) + 1 (int) Math.log10(num[0] + num[1]) Math.log10 Math num[0] + num[1] num[0] num 0 num[1] num 1 1 System.out.println(answer) System.out.println System.out System System.out answer String[] a a public class Main {
	public static void main(String[] a) {
		BufferedReader br;
		br = new BufferedReader(new InputStreamReader(System.in));
		int[] num = new int[2];
		String str;
		try {
			while ((str = br.readLine()) != null) {

				String[] array = str.split(" ");
				for (int h = 0; h < array.length / 2; h++) {
					for (int i = 0; i < 2; i++) {
						num[i] = Integer.parseInt(array[i + h * 2]);
					}
					int answer = (int) Math.log10(num[0] + num[1]) + 1;
					System.out.println(answer);
				}
			}
		} catch (IOException e) {
			e.printStackTrace();
		}

	}
} public class Main {
	public static void main(String[] a) {
		BufferedReader br;
		br = new BufferedReader(new InputStreamReader(System.in));
		int[] num = new int[2];
		String str;
		try {
			while ((str = br.readLine()) != null) {

				String[] array = str.split(" ");
				for (int h = 0; h < array.length / 2; h++) {
					for (int i = 0; i < 2; i++) {
						num[i] = Integer.parseInt(array[i + h * 2]);
					}
					int answer = (int) Math.log10(num[0] + num[1]) + 1;
					System.out.println(answer);
				}
			}
		} 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[] a) {
		BufferedReader br;
		br = new BufferedReader(new InputStreamReader(System.in));
		int[] num = new int[2];
		String str;
		try {
			while ((str = br.readLine()) != null) {

				String[] array = str.split(" ");
				for (int h = 0; h < array.length / 2; h++) {
					for (int i = 0; i < 2; i++) {
						num[i] = Integer.parseInt(array[i + h * 2]);
					}
					int answer = (int) Math.log10(num[0] + num[1]) + 1;
					System.out.println(answer);
				}
			}
		} catch (IOException e) {
			e.printStackTrace();
		}

	}
}