import java.util.Scanner;

class Main {
    
    public static void main(String[] args){
	Scanner stdin = new Scanner(System.in);

	while(stdin.hasNextInt()){
	    int i = stdin.nextInt() + stdin.nextInt();
	    int count = 0;
	    while(i != 0){
		count++;
		i /= 10;
	    }
	    System.out.println(count);
	}
    }
}
	    
     import java.util.Scanner; Scanner java.util class Main {
    
    public static void main(String[] args){
	Scanner stdin = new Scanner(System.in);

	while(stdin.hasNextInt()){
	    int i = stdin.nextInt() + stdin.nextInt();
	    int count = 0;
	    while(i != 0){
		count++;
		i /= 10;
	    }
	    System.out.println(count);
	}
    }
} Main public static void main(String[] args){
	Scanner stdin = new Scanner(System.in);

	while(stdin.hasNextInt()){
	    int i = stdin.nextInt() + stdin.nextInt();
	    int count = 0;
	    while(i != 0){
		count++;
		i /= 10;
	    }
	    System.out.println(count);
	}
    } main {
	Scanner stdin = new Scanner(System.in);

	while(stdin.hasNextInt()){
	    int i = stdin.nextInt() + stdin.nextInt();
	    int count = 0;
	    while(i != 0){
		count++;
		i /= 10;
	    }
	    System.out.println(count);
	}
    } Scanner stdin = new Scanner(System.in); stdin new Scanner(System.in) while(stdin.hasNextInt()){
	    int i = stdin.nextInt() + stdin.nextInt();
	    int count = 0;
	    while(i != 0){
		count++;
		i /= 10;
	    }
	    System.out.println(count);
	} stdin.hasNextInt() stdin.hasNextInt stdin {
	    int i = stdin.nextInt() + stdin.nextInt();
	    int count = 0;
	    while(i != 0){
		count++;
		i /= 10;
	    }
	    System.out.println(count);
	} int i = stdin.nextInt() + stdin.nextInt(); i stdin.nextInt() + stdin.nextInt() stdin.nextInt() stdin.nextInt stdin stdin.nextInt() stdin.nextInt stdin int count = 0; count 0 while(i != 0){
		count++;
		i /= 10;
	    } i != 0 i 0 {
		count++;
		i /= 10;
	    } count++ count i /= 10 i 10 System.out.println(count) System.out.println System.out System System.out count String[] args args
import java.util.Scanner;

class Main {
    
    public static void main(String[] args){
	Scanner stdin = new Scanner(System.in);

	while(stdin.hasNextInt()){
	    int i = stdin.nextInt() + stdin.nextInt();
	    int count = 0;
	    while(i != 0){
		count++;
		i /= 10;
	    }
	    System.out.println(count);
	}
    }
}
	    
    