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

public class Main{

	public static void main(String[] args) throws Exception {
		// TODO ?????????????????????????????????????????????

        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            String line;
            while ((line = br.readLine()) != null&&line.length()!=0) {
            	String[] str=line.split(" ");
            	int sum=Integer.parseInt(str[0])+Integer.parseInt(str[1]);
            	int i=0;
            	while(sum>0){
            		sum=sum/10;
            		i++;
            	}
            	System.out.println(i);
            }
         }
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main{

	public static void main(String[] args) throws Exception {
		// TODO ?????????????????????????????????????????????

        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            String line;
            while ((line = br.readLine()) != null&&line.length()!=0) {
            	String[] str=line.split(" ");
            	int sum=Integer.parseInt(str[0])+Integer.parseInt(str[1]);
            	int i=0;
            	while(sum>0){
            		sum=sum/10;
            		i++;
            	}
            	System.out.println(i);
            }
         }
	}
} Main public static void main(String[] args) throws Exception {
		// TODO ?????????????????????????????????????????????

        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            String line;
            while ((line = br.readLine()) != null&&line.length()!=0) {
            	String[] str=line.split(" ");
            	int sum=Integer.parseInt(str[0])+Integer.parseInt(str[1]);
            	int i=0;
            	while(sum>0){
            		sum=sum/10;
            		i++;
            	}
            	System.out.println(i);
            }
         }
	} main {
		// TODO ?????????????????????????????????????????????

        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            String line;
            while ((line = br.readLine()) != null&&line.length()!=0) {
            	String[] str=line.split(" ");
            	int sum=Integer.parseInt(str[0])+Integer.parseInt(str[1]);
            	int i=0;
            	while(sum>0){
            		sum=sum/10;
            		i++;
            	}
            	System.out.println(i);
            }
         }
	} try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            String line;
            while ((line = br.readLine()) != null&&line.length()!=0) {
            	String[] str=line.split(" ");
            	int sum=Integer.parseInt(str[0])+Integer.parseInt(str[1]);
            	int i=0;
            	while(sum>0){
            		sum=sum/10;
            		i++;
            	}
            	System.out.println(i);
            }
         } {
            String line;
            while ((line = br.readLine()) != null&&line.length()!=0) {
            	String[] str=line.split(" ");
            	int sum=Integer.parseInt(str[0])+Integer.parseInt(str[1]);
            	int i=0;
            	while(sum>0){
            		sum=sum/10;
            		i++;
            	}
            	System.out.println(i);
            }
         } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) new BufferedReader(new InputStreamReader(System.in)) String line; line while ((line = br.readLine()) != null&&line.length()!=0) {
            	String[] str=line.split(" ");
            	int sum=Integer.parseInt(str[0])+Integer.parseInt(str[1]);
            	int i=0;
            	while(sum>0){
            		sum=sum/10;
            		i++;
            	}
            	System.out.println(i);
            } (line = br.readLine()) != null&&line.length()!=0 (line = br.readLine()) != null (line = br.readLine()) line br.readLine() br.readLine br null line.length()!=0 line.length() line.length line 0 {
            	String[] str=line.split(" ");
            	int sum=Integer.parseInt(str[0])+Integer.parseInt(str[1]);
            	int i=0;
            	while(sum>0){
            		sum=sum/10;
            		i++;
            	}
            	System.out.println(i);
            } String[] str=line.split(" "); str line.split(" ") line.split line " " int sum=Integer.parseInt(str[0])+Integer.parseInt(str[1]); sum Integer.parseInt(str[0])+Integer.parseInt(str[1]) Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 int i=0; i 0 while(sum>0){
            		sum=sum/10;
            		i++;
            	} sum>0 sum 0 {
            		sum=sum/10;
            		i++;
            	} sum=sum/10 sum sum/10 sum 10 i++ i System.out.println(i) System.out.println System.out System System.out i String[] args args public class Main{

	public static void main(String[] args) throws Exception {
		// TODO ?????????????????????????????????????????????

        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            String line;
            while ((line = br.readLine()) != null&&line.length()!=0) {
            	String[] str=line.split(" ");
            	int sum=Integer.parseInt(str[0])+Integer.parseInt(str[1]);
            	int i=0;
            	while(sum>0){
            		sum=sum/10;
            		i++;
            	}
            	System.out.println(i);
            }
         }
	}
} public class Main{

	public static void main(String[] args) throws Exception {
		// TODO ?????????????????????????????????????????????

        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            String line;
            while ((line = br.readLine()) != null&&line.length()!=0) {
            	String[] str=line.split(" ");
            	int sum=Integer.parseInt(str[0])+Integer.parseInt(str[1]);
            	int i=0;
            	while(sum>0){
            		sum=sum/10;
            		i++;
            	}
            	System.out.println(i);
            }
         }
	}
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main{

	public static void main(String[] args) throws Exception {
		// TODO ?????????????????????????????????????????????

        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            String line;
            while ((line = br.readLine()) != null&&line.length()!=0) {
            	String[] str=line.split(" ");
            	int sum=Integer.parseInt(str[0])+Integer.parseInt(str[1]);
            	int i=0;
            	while(sum>0){
            		sum=sum/10;
            		i++;
            	}
            	System.out.println(i);
            }
         }
	}
}