
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		
		while(stdIn.hasNext()){
			int a = stdIn.nextInt();
			int b = stdIn.nextInt();
			int c = a + b;
			int count = 1;
		
			while(c/10!=0){
				count++;
				c = c/10;
			}
		
			System.out.println(count);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		
		while(stdIn.hasNext()){
			int a = stdIn.nextInt();
			int b = stdIn.nextInt();
			int c = a + b;
			int count = 1;
		
			while(c/10!=0){
				count++;
				c = c/10;
			}
		
			System.out.println(count);
		}
	}
} Main public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		
		while(stdIn.hasNext()){
			int a = stdIn.nextInt();
			int b = stdIn.nextInt();
			int c = a + b;
			int count = 1;
		
			while(c/10!=0){
				count++;
				c = c/10;
			}
		
			System.out.println(count);
		}
	} main {
		Scanner stdIn = new Scanner(System.in);
		
		while(stdIn.hasNext()){
			int a = stdIn.nextInt();
			int b = stdIn.nextInt();
			int c = a + b;
			int count = 1;
		
			while(c/10!=0){
				count++;
				c = c/10;
			}
		
			System.out.println(count);
		}
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) while(stdIn.hasNext()){
			int a = stdIn.nextInt();
			int b = stdIn.nextInt();
			int c = a + b;
			int count = 1;
		
			while(c/10!=0){
				count++;
				c = c/10;
			}
		
			System.out.println(count);
		} stdIn.hasNext() stdIn.hasNext stdIn {
			int a = stdIn.nextInt();
			int b = stdIn.nextInt();
			int c = a + b;
			int count = 1;
		
			while(c/10!=0){
				count++;
				c = c/10;
			}
		
			System.out.println(count);
		} int a = stdIn.nextInt(); a stdIn.nextInt() stdIn.nextInt stdIn int b = stdIn.nextInt(); b stdIn.nextInt() stdIn.nextInt stdIn int c = a + b; c a + b a b int count = 1; count 1 while(c/10!=0){
				count++;
				c = c/10;
			} c/10!=0 c/10 c 10 0 {
				count++;
				c = c/10;
			} count++ count c = c/10 c c/10 c 10 System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		
		while(stdIn.hasNext()){
			int a = stdIn.nextInt();
			int b = stdIn.nextInt();
			int c = a + b;
			int count = 1;
		
			while(c/10!=0){
				count++;
				c = c/10;
			}
		
			System.out.println(count);
		}
	}
} public class Main {
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		
		while(stdIn.hasNext()){
			int a = stdIn.nextInt();
			int b = stdIn.nextInt();
			int c = a + b;
			int count = 1;
		
			while(c/10!=0){
				count++;
				c = c/10;
			}
		
			System.out.println(count);
		}
	}
} Main

import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		
		while(stdIn.hasNext()){
			int a = stdIn.nextInt();
			int b = stdIn.nextInt();
			int c = a + b;
			int count = 1;
		
			while(c/10!=0){
				count++;
				c = c/10;
			}
		
			System.out.println(count);
		}
	}
}