import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main{
    public static void main(String[] a) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String strArray[];
		String str;
		while (line != null) {
			strArray = line.split(" ");
			str = String.valueOf(Integer.valueOf(strArray[0]) + Integer.valueOf(strArray[1]));
			char[] charArray = str.toCharArray();
			System.out.println(charArray.length);
			line = br.readLine();
		}
    }
} 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[] a) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String strArray[];
		String str;
		while (line != null) {
			strArray = line.split(" ");
			str = String.valueOf(Integer.valueOf(strArray[0]) + Integer.valueOf(strArray[1]));
			char[] charArray = str.toCharArray();
			System.out.println(charArray.length);
			line = br.readLine();
		}
    }
} Main public static void main(String[] a) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String strArray[];
		String str;
		while (line != null) {
			strArray = line.split(" ");
			str = String.valueOf(Integer.valueOf(strArray[0]) + Integer.valueOf(strArray[1]));
			char[] charArray = str.toCharArray();
			System.out.println(charArray.length);
			line = br.readLine();
		}
    } main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String strArray[];
		String str;
		while (line != null) {
			strArray = line.split(" ");
			str = String.valueOf(Integer.valueOf(strArray[0]) + Integer.valueOf(strArray[1]));
			char[] charArray = str.toCharArray();
			System.out.println(charArray.length);
			line = br.readLine();
		}
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line = br.readLine(); line br.readLine() br.readLine br String strArray[]; strArray String str; str while (line != null) {
			strArray = line.split(" ");
			str = String.valueOf(Integer.valueOf(strArray[0]) + Integer.valueOf(strArray[1]));
			char[] charArray = str.toCharArray();
			System.out.println(charArray.length);
			line = br.readLine();
		} line != null line null {
			strArray = line.split(" ");
			str = String.valueOf(Integer.valueOf(strArray[0]) + Integer.valueOf(strArray[1]));
			char[] charArray = str.toCharArray();
			System.out.println(charArray.length);
			line = br.readLine();
		} strArray = line.split(" ") strArray line.split(" ") line.split line " " str = String.valueOf(Integer.valueOf(strArray[0]) + Integer.valueOf(strArray[1])) str String.valueOf(Integer.valueOf(strArray[0]) + Integer.valueOf(strArray[1])) String.valueOf String Integer.valueOf(strArray[0]) + Integer.valueOf(strArray[1]) Integer.valueOf(strArray[0]) Integer.valueOf Integer strArray[0] strArray 0 Integer.valueOf(strArray[1]) Integer.valueOf Integer strArray[1] strArray 1 char[] charArray = str.toCharArray(); charArray str.toCharArray() str.toCharArray str System.out.println(charArray.length) System.out.println System.out System System.out charArray.length charArray charArray.length line = br.readLine() line br.readLine() br.readLine br String[] a a
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main{
    public static void main(String[] a) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String strArray[];
		String str;
		while (line != null) {
			strArray = line.split(" ");
			str = String.valueOf(Integer.valueOf(strArray[0]) + Integer.valueOf(strArray[1]));
			char[] charArray = str.toCharArray();
			System.out.println(charArray.length);
			line = br.readLine();
		}
    }
}