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

class Main {
	public static void main(String[] arg) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int a, b;
		String line, str;
		String[] splitedLine;
		while ((line = br.readLine()) != null) {
			splitedLine = line.split(" ");
			a = Integer.parseInt(splitedLine[0]);
			b = Integer.parseInt(splitedLine[1]);
			str = String.valueOf(a + b);
			System.out.println(str.length());
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Main {
	public static void main(String[] arg) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int a, b;
		String line, str;
		String[] splitedLine;
		while ((line = br.readLine()) != null) {
			splitedLine = line.split(" ");
			a = Integer.parseInt(splitedLine[0]);
			b = Integer.parseInt(splitedLine[1]);
			str = String.valueOf(a + b);
			System.out.println(str.length());
		}
	}
} Main public static void main(String[] arg) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int a, b;
		String line, str;
		String[] splitedLine;
		while ((line = br.readLine()) != null) {
			splitedLine = line.split(" ");
			a = Integer.parseInt(splitedLine[0]);
			b = Integer.parseInt(splitedLine[1]);
			str = String.valueOf(a + b);
			System.out.println(str.length());
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int a, b;
		String line, str;
		String[] splitedLine;
		while ((line = br.readLine()) != null) {
			splitedLine = line.split(" ");
			a = Integer.parseInt(splitedLine[0]);
			b = Integer.parseInt(splitedLine[1]);
			str = String.valueOf(a + b);
			System.out.println(str.length());
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int a a b; b String line line str; str String[] splitedLine; splitedLine while ((line = br.readLine()) != null) {
			splitedLine = line.split(" ");
			a = Integer.parseInt(splitedLine[0]);
			b = Integer.parseInt(splitedLine[1]);
			str = String.valueOf(a + b);
			System.out.println(str.length());
		} (line = br.readLine()) != null (line = br.readLine()) line br.readLine() br.readLine br null {
			splitedLine = line.split(" ");
			a = Integer.parseInt(splitedLine[0]);
			b = Integer.parseInt(splitedLine[1]);
			str = String.valueOf(a + b);
			System.out.println(str.length());
		} splitedLine = line.split(" ") splitedLine line.split(" ") line.split line " " a = Integer.parseInt(splitedLine[0]) a Integer.parseInt(splitedLine[0]) Integer.parseInt Integer splitedLine[0] splitedLine 0 b = Integer.parseInt(splitedLine[1]) b Integer.parseInt(splitedLine[1]) Integer.parseInt Integer splitedLine[1] splitedLine 1 str = String.valueOf(a + b) str String.valueOf(a + b) String.valueOf String a + b a b System.out.println(str.length()) System.out.println System.out System System.out str.length() str.length str String[] arg arg
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {
	public static void main(String[] arg) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int a, b;
		String line, str;
		String[] splitedLine;
		while ((line = br.readLine()) != null) {
			splitedLine = line.split(" ");
			a = Integer.parseInt(splitedLine[0]);
			b = Integer.parseInt(splitedLine[1]);
			str = String.valueOf(a + b);
			System.out.println(str.length());
		}
	}
}