import java.io.*;

class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		while (str != null) {
			String[] arrays = str.split("\\s", 0);
			int num = Integer.parseInt(arrays[0]) + Integer.parseInt(arrays[1]);
			System.out.println(Integer.toString(num).length());
			str = br.readLine();
		}
	}
} import java.io.*; io.* java class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		while (str != null) {
			String[] arrays = str.split("\\s", 0);
			int num = Integer.parseInt(arrays[0]) + Integer.parseInt(arrays[1]);
			System.out.println(Integer.toString(num).length());
			str = br.readLine();
		}
	}
} Main public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		while (str != null) {
			String[] arrays = str.split("\\s", 0);
			int num = Integer.parseInt(arrays[0]) + Integer.parseInt(arrays[1]);
			System.out.println(Integer.toString(num).length());
			str = br.readLine();
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		while (str != null) {
			String[] arrays = str.split("\\s", 0);
			int num = Integer.parseInt(arrays[0]) + Integer.parseInt(arrays[1]);
			System.out.println(Integer.toString(num).length());
			str = br.readLine();
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = br.readLine(); str br.readLine() br.readLine br while (str != null) {
			String[] arrays = str.split("\\s", 0);
			int num = Integer.parseInt(arrays[0]) + Integer.parseInt(arrays[1]);
			System.out.println(Integer.toString(num).length());
			str = br.readLine();
		} str != null str null {
			String[] arrays = str.split("\\s", 0);
			int num = Integer.parseInt(arrays[0]) + Integer.parseInt(arrays[1]);
			System.out.println(Integer.toString(num).length());
			str = br.readLine();
		} String[] arrays = str.split("\\s", 0); arrays str.split("\\s", 0) str.split str "\\s" 0 int num = Integer.parseInt(arrays[0]) + Integer.parseInt(arrays[1]); num Integer.parseInt(arrays[0]) + Integer.parseInt(arrays[1]) Integer.parseInt(arrays[0]) Integer.parseInt Integer arrays[0] arrays 0 Integer.parseInt(arrays[1]) Integer.parseInt Integer arrays[1] arrays 1 System.out.println(Integer.toString(num).length()) System.out.println System.out System System.out Integer.toString(num).length() Integer.toString(num).length Integer.toString(num) Integer.toString Integer num str = br.readLine() str br.readLine() br.readLine br String[] args args
import java.io.*;

class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		while (str != null) {
			String[] arrays = str.split("\\s", 0);
			int num = Integer.parseInt(arrays[0]) + Integer.parseInt(arrays[1]);
			System.out.println(Integer.toString(num).length());
			str = br.readLine();
		}
	}
}