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 = br.readLine();
		String[] datasetstr = new String[2];
		int[] datasetint = new int[2];
		while (str != null) {
			datasetstr = str.split(" ", 2);
			datasetint[0] = Integer.parseInt(datasetstr[0]);
			datasetint[1] = Integer.parseInt(datasetstr[1]);
			System.out.println(Math.round(Math.ceil(Math.log10(datasetint[0]
					+ datasetint[1] + 1))));
			str = br.readLine();
		}
	}
} 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 = br.readLine();
		String[] datasetstr = new String[2];
		int[] datasetint = new int[2];
		while (str != null) {
			datasetstr = str.split(" ", 2);
			datasetint[0] = Integer.parseInt(datasetstr[0]);
			datasetint[1] = Integer.parseInt(datasetstr[1]);
			System.out.println(Math.round(Math.ceil(Math.log10(datasetint[0]
					+ datasetint[1] + 1))));
			str = br.readLine();
		}
	}
} Main public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] datasetstr = new String[2];
		int[] datasetint = new int[2];
		while (str != null) {
			datasetstr = str.split(" ", 2);
			datasetint[0] = Integer.parseInt(datasetstr[0]);
			datasetint[1] = Integer.parseInt(datasetstr[1]);
			System.out.println(Math.round(Math.ceil(Math.log10(datasetint[0]
					+ datasetint[1] + 1))));
			str = br.readLine();
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] datasetstr = new String[2];
		int[] datasetint = new int[2];
		while (str != null) {
			datasetstr = str.split(" ", 2);
			datasetint[0] = Integer.parseInt(datasetstr[0]);
			datasetint[1] = Integer.parseInt(datasetstr[1]);
			System.out.println(Math.round(Math.ceil(Math.log10(datasetint[0]
					+ datasetint[1] + 1))));
			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 String[] datasetstr = new String[2]; datasetstr new String[2] 2 int[] datasetint = new int[2]; datasetint new int[2] 2 while (str != null) {
			datasetstr = str.split(" ", 2);
			datasetint[0] = Integer.parseInt(datasetstr[0]);
			datasetint[1] = Integer.parseInt(datasetstr[1]);
			System.out.println(Math.round(Math.ceil(Math.log10(datasetint[0]
					+ datasetint[1] + 1))));
			str = br.readLine();
		} str != null str null {
			datasetstr = str.split(" ", 2);
			datasetint[0] = Integer.parseInt(datasetstr[0]);
			datasetint[1] = Integer.parseInt(datasetstr[1]);
			System.out.println(Math.round(Math.ceil(Math.log10(datasetint[0]
					+ datasetint[1] + 1))));
			str = br.readLine();
		} datasetstr = str.split(" ", 2) datasetstr str.split(" ", 2) str.split str " " 2 datasetint[0] = Integer.parseInt(datasetstr[0]) datasetint[0] datasetint 0 Integer.parseInt(datasetstr[0]) Integer.parseInt Integer datasetstr[0] datasetstr 0 datasetint[1] = Integer.parseInt(datasetstr[1]) datasetint[1] datasetint 1 Integer.parseInt(datasetstr[1]) Integer.parseInt Integer datasetstr[1] datasetstr 1 System.out.println(Math.round(Math.ceil(Math.log10(datasetint[0]
					+ datasetint[1] + 1)))) System.out.println System.out System System.out Math.round(Math.ceil(Math.log10(datasetint[0]
					+ datasetint[1] + 1))) Math.round Math Math.ceil(Math.log10(datasetint[0]
					+ datasetint[1] + 1)) Math.ceil Math Math.log10(datasetint[0]
					+ datasetint[1] + 1) Math.log10 Math datasetint[0]
					+ datasetint[1] + 1 datasetint[0]
					+ datasetint[1] + 1 datasetint[0] datasetint 0 datasetint[1] datasetint 1 1 str = br.readLine() str br.readLine() br.readLine br String[] args args public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] datasetstr = new String[2];
		int[] datasetint = new int[2];
		while (str != null) {
			datasetstr = str.split(" ", 2);
			datasetint[0] = Integer.parseInt(datasetstr[0]);
			datasetint[1] = Integer.parseInt(datasetstr[1]);
			System.out.println(Math.round(Math.ceil(Math.log10(datasetint[0]
					+ datasetint[1] + 1))));
			str = br.readLine();
		}
	}
} public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] datasetstr = new String[2];
		int[] datasetint = new int[2];
		while (str != null) {
			datasetstr = str.split(" ", 2);
			datasetint[0] = Integer.parseInt(datasetstr[0]);
			datasetint[1] = Integer.parseInt(datasetstr[1]);
			System.out.println(Math.round(Math.ceil(Math.log10(datasetint[0]
					+ datasetint[1] + 1))));
			str = br.readLine();
		}
	}
} 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 = br.readLine();
		String[] datasetstr = new String[2];
		int[] datasetint = new int[2];
		while (str != null) {
			datasetstr = str.split(" ", 2);
			datasetint[0] = Integer.parseInt(datasetstr[0]);
			datasetint[1] = Integer.parseInt(datasetstr[1]);
			System.out.println(Math.round(Math.ceil(Math.log10(datasetint[0]
					+ datasetint[1] + 1))));
			str = br.readLine();
		}
	}
}