import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] sum = new int[200];
		int i=0;
		while(sc.hasNext()){
			sum[i] = sc.nextInt() + sc.nextInt();
			i++;
		}
		
		for(int j=0;j<i;j++){
			int k=0;
			while(sum[j]!=0){
				k++;
				sum[j] /= 10;
			}
			System.out.println(k);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] sum = new int[200];
		int i=0;
		while(sc.hasNext()){
			sum[i] = sc.nextInt() + sc.nextInt();
			i++;
		}
		
		for(int j=0;j<i;j++){
			int k=0;
			while(sum[j]!=0){
				k++;
				sum[j] /= 10;
			}
			System.out.println(k);
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] sum = new int[200];
		int i=0;
		while(sc.hasNext()){
			sum[i] = sc.nextInt() + sc.nextInt();
			i++;
		}
		
		for(int j=0;j<i;j++){
			int k=0;
			while(sum[j]!=0){
				k++;
				sum[j] /= 10;
			}
			System.out.println(k);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int[] sum = new int[200];
		int i=0;
		while(sc.hasNext()){
			sum[i] = sc.nextInt() + sc.nextInt();
			i++;
		}
		
		for(int j=0;j<i;j++){
			int k=0;
			while(sum[j]!=0){
				k++;
				sum[j] /= 10;
			}
			System.out.println(k);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int[] sum = new int[200]; sum new int[200] 200 int i=0; i 0 while(sc.hasNext()){
			sum[i] = sc.nextInt() + sc.nextInt();
			i++;
		} sc.hasNext() sc.hasNext sc {
			sum[i] = sc.nextInt() + sc.nextInt();
			i++;
		} sum[i] = sc.nextInt() + sc.nextInt() sum[i] sum i sc.nextInt() + sc.nextInt() sc.nextInt() sc.nextInt sc sc.nextInt() sc.nextInt sc i++ i for(int j=0;j<i;j++){
			int k=0;
			while(sum[j]!=0){
				k++;
				sum[j] /= 10;
			}
			System.out.println(k);
		} int j=0; int j=0; j 0 j<i j i j++ j++ j {
			int k=0;
			while(sum[j]!=0){
				k++;
				sum[j] /= 10;
			}
			System.out.println(k);
		} {
			int k=0;
			while(sum[j]!=0){
				k++;
				sum[j] /= 10;
			}
			System.out.println(k);
		} int k=0; k 0 while(sum[j]!=0){
				k++;
				sum[j] /= 10;
			} sum[j]!=0 sum[j] sum j 0 {
				k++;
				sum[j] /= 10;
			} k++ k sum[j] /= 10 sum[j] sum j 10 System.out.println(k) System.out.println System.out System System.out k String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] sum = new int[200];
		int i=0;
		while(sc.hasNext()){
			sum[i] = sc.nextInt() + sc.nextInt();
			i++;
		}
		
		for(int j=0;j<i;j++){
			int k=0;
			while(sum[j]!=0){
				k++;
				sum[j] /= 10;
			}
			System.out.println(k);
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] sum = new int[200];
		int i=0;
		while(sc.hasNext()){
			sum[i] = sc.nextInt() + sc.nextInt();
			i++;
		}
		
		for(int j=0;j<i;j++){
			int k=0;
			while(sum[j]!=0){
				k++;
				sum[j] /= 10;
			}
			System.out.println(k);
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] sum = new int[200];
		int i=0;
		while(sc.hasNext()){
			sum[i] = sc.nextInt() + sc.nextInt();
			i++;
		}
		
		for(int j=0;j<i;j++){
			int k=0;
			while(sum[j]!=0){
				k++;
				sum[j] /= 10;
			}
			System.out.println(k);
		}
	}
}