import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		while(sc.hasNext()){
			int num = sc.nextInt() + sc. nextInt();
			int d = 1;
			while(num >= tene(d)){
				d++;
			}
			
			System.out.println(d);
		}
	}

	private static int tene(int digit){
		int t = 1;
		
		for(int i = 0; i < digit; i++){
			t=t*10;
		}
		
		return t;
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		while(sc.hasNext()){
			int num = sc.nextInt() + sc. nextInt();
			int d = 1;
			while(num >= tene(d)){
				d++;
			}
			
			System.out.println(d);
		}
	}

	private static int tene(int digit){
		int t = 1;
		
		for(int i = 0; i < digit; i++){
			t=t*10;
		}
		
		return t;
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		while(sc.hasNext()){
			int num = sc.nextInt() + sc. nextInt();
			int d = 1;
			while(num >= tene(d)){
				d++;
			}
			
			System.out.println(d);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		
		while(sc.hasNext()){
			int num = sc.nextInt() + sc. nextInt();
			int d = 1;
			while(num >= tene(d)){
				d++;
			}
			
			System.out.println(d);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while(sc.hasNext()){
			int num = sc.nextInt() + sc. nextInt();
			int d = 1;
			while(num >= tene(d)){
				d++;
			}
			
			System.out.println(d);
		} sc.hasNext() sc.hasNext sc {
			int num = sc.nextInt() + sc. nextInt();
			int d = 1;
			while(num >= tene(d)){
				d++;
			}
			
			System.out.println(d);
		} int num = sc.nextInt() + sc. nextInt(); num sc.nextInt() + sc. nextInt() sc.nextInt() sc.nextInt sc sc. nextInt() sc. nextInt sc int d = 1; d 1 while(num >= tene(d)){
				d++;
			} num >= tene(d) num tene(d) tene d {
				d++;
			} d++ d System.out.println(d) System.out.println System.out System System.out d String[] args args private static int tene(int digit){
		int t = 1;
		
		for(int i = 0; i < digit; i++){
			t=t*10;
		}
		
		return t;
	} tene {
		int t = 1;
		
		for(int i = 0; i < digit; i++){
			t=t*10;
		}
		
		return t;
	} int t = 1; t 1 for(int i = 0; i < digit; i++){
			t=t*10;
		} int i = 0; int i = 0; i 0 i < digit i digit i++ i++ i {
			t=t*10;
		} {
			t=t*10;
		} t=t*10 t t*10 t 10 return t; t int digit digit public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		while(sc.hasNext()){
			int num = sc.nextInt() + sc. nextInt();
			int d = 1;
			while(num >= tene(d)){
				d++;
			}
			
			System.out.println(d);
		}
	}

	private static int tene(int digit){
		int t = 1;
		
		for(int i = 0; i < digit; i++){
			t=t*10;
		}
		
		return t;
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		while(sc.hasNext()){
			int num = sc.nextInt() + sc. nextInt();
			int d = 1;
			while(num >= tene(d)){
				d++;
			}
			
			System.out.println(d);
		}
	}

	private static int tene(int digit){
		int t = 1;
		
		for(int i = 0; i < digit; i++){
			t=t*10;
		}
		
		return t;
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		while(sc.hasNext()){
			int num = sc.nextInt() + sc. nextInt();
			int d = 1;
			while(num >= tene(d)){
				d++;
			}
			
			System.out.println(d);
		}
	}

	private static int tene(int digit){
		int t = 1;
		
		for(int i = 0; i < digit; i++){
			t=t*10;
		}
		
		return t;
	}
}