import java.io.*;

public class Main {
	public static void main(String args[]) throws IOException{
		String str,dataSet[];
		int i,j,total,count = 1;
		BufferedReader input =
				new BufferedReader(new InputStreamReader(System.in));
		while((str = input.readLine()) != null){
			dataSet = str.split(" ");
			i = Integer.parseInt(dataSet[0]);
			j = Integer.parseInt(dataSet[1]);
			total = i+j;
			while((total /= 10) >= 1){
				count++;
				//System.out.println("total = " + total);
			}
			System.out.println(count);
			count = 1;
		}
	}
} import java.io.*; io.* java public class Main {
	public static void main(String args[]) throws IOException{
		String str,dataSet[];
		int i,j,total,count = 1;
		BufferedReader input =
				new BufferedReader(new InputStreamReader(System.in));
		while((str = input.readLine()) != null){
			dataSet = str.split(" ");
			i = Integer.parseInt(dataSet[0]);
			j = Integer.parseInt(dataSet[1]);
			total = i+j;
			while((total /= 10) >= 1){
				count++;
				//System.out.println("total = " + total);
			}
			System.out.println(count);
			count = 1;
		}
	}
} Main public static void main(String args[]) throws IOException{
		String str,dataSet[];
		int i,j,total,count = 1;
		BufferedReader input =
				new BufferedReader(new InputStreamReader(System.in));
		while((str = input.readLine()) != null){
			dataSet = str.split(" ");
			i = Integer.parseInt(dataSet[0]);
			j = Integer.parseInt(dataSet[1]);
			total = i+j;
			while((total /= 10) >= 1){
				count++;
				//System.out.println("total = " + total);
			}
			System.out.println(count);
			count = 1;
		}
	} main {
		String str,dataSet[];
		int i,j,total,count = 1;
		BufferedReader input =
				new BufferedReader(new InputStreamReader(System.in));
		while((str = input.readLine()) != null){
			dataSet = str.split(" ");
			i = Integer.parseInt(dataSet[0]);
			j = Integer.parseInt(dataSet[1]);
			total = i+j;
			while((total /= 10) >= 1){
				count++;
				//System.out.println("total = " + total);
			}
			System.out.println(count);
			count = 1;
		}
	} String str str dataSet[]; dataSet int i i j j total total count = 1; count 1 BufferedReader input =
				new BufferedReader(new InputStreamReader(System.in)); input new BufferedReader(new InputStreamReader(System.in)) while((str = input.readLine()) != null){
			dataSet = str.split(" ");
			i = Integer.parseInt(dataSet[0]);
			j = Integer.parseInt(dataSet[1]);
			total = i+j;
			while((total /= 10) >= 1){
				count++;
				//System.out.println("total = " + total);
			}
			System.out.println(count);
			count = 1;
		} (str = input.readLine()) != null (str = input.readLine()) str input.readLine() input.readLine input null {
			dataSet = str.split(" ");
			i = Integer.parseInt(dataSet[0]);
			j = Integer.parseInt(dataSet[1]);
			total = i+j;
			while((total /= 10) >= 1){
				count++;
				//System.out.println("total = " + total);
			}
			System.out.println(count);
			count = 1;
		} dataSet = str.split(" ") dataSet str.split(" ") str.split str " " i = Integer.parseInt(dataSet[0]) i Integer.parseInt(dataSet[0]) Integer.parseInt Integer dataSet[0] dataSet 0 j = Integer.parseInt(dataSet[1]) j Integer.parseInt(dataSet[1]) Integer.parseInt Integer dataSet[1] dataSet 1 total = i+j total i+j i j while((total /= 10) >= 1){
				count++;
				//System.out.println("total = " + total);
			} (total /= 10) >= 1 (total /= 10) total 10 1 {
				count++;
				//System.out.println("total = " + total);
			} count++ count System.out.println(count) System.out.println System.out System System.out count count = 1 count 1 String args[] args public class Main {
	public static void main(String args[]) throws IOException{
		String str,dataSet[];
		int i,j,total,count = 1;
		BufferedReader input =
				new BufferedReader(new InputStreamReader(System.in));
		while((str = input.readLine()) != null){
			dataSet = str.split(" ");
			i = Integer.parseInt(dataSet[0]);
			j = Integer.parseInt(dataSet[1]);
			total = i+j;
			while((total /= 10) >= 1){
				count++;
				//System.out.println("total = " + total);
			}
			System.out.println(count);
			count = 1;
		}
	}
} public class Main {
	public static void main(String args[]) throws IOException{
		String str,dataSet[];
		int i,j,total,count = 1;
		BufferedReader input =
				new BufferedReader(new InputStreamReader(System.in));
		while((str = input.readLine()) != null){
			dataSet = str.split(" ");
			i = Integer.parseInt(dataSet[0]);
			j = Integer.parseInt(dataSet[1]);
			total = i+j;
			while((total /= 10) >= 1){
				count++;
				//System.out.println("total = " + total);
			}
			System.out.println(count);
			count = 1;
		}
	}
} Main
import java.io.*;

public class Main {
	public static void main(String args[]) throws IOException{
		String str,dataSet[];
		int i,j,total,count = 1;
		BufferedReader input =
				new BufferedReader(new InputStreamReader(System.in));
		while((str = input.readLine()) != null){
			dataSet = str.split(" ");
			i = Integer.parseInt(dataSet[0]);
			j = Integer.parseInt(dataSet[1]);
			total = i+j;
			while((total /= 10) >= 1){
				count++;
				//System.out.println("total = " + total);
			}
			System.out.println(count);
			count = 1;
		}
	}
}