import java.util.Scanner;

class Main {	
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		int count;
		
		while(scan.hasNextInt()){
			count = 1;
			int addNum = scan.nextInt() + scan.nextInt();
			while(addNum>=10){
				count++;
				addNum/=10;
			}
			System.out.println(count);
		}
	}
} import java.util.Scanner; Scanner java.util class Main {	
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		int count;
		
		while(scan.hasNextInt()){
			count = 1;
			int addNum = scan.nextInt() + scan.nextInt();
			while(addNum>=10){
				count++;
				addNum/=10;
			}
			System.out.println(count);
		}
	}
} Main public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		int count;
		
		while(scan.hasNextInt()){
			count = 1;
			int addNum = scan.nextInt() + scan.nextInt();
			while(addNum>=10){
				count++;
				addNum/=10;
			}
			System.out.println(count);
		}
	} main {
		Scanner scan = new Scanner(System.in);
		int count;
		
		while(scan.hasNextInt()){
			count = 1;
			int addNum = scan.nextInt() + scan.nextInt();
			while(addNum>=10){
				count++;
				addNum/=10;
			}
			System.out.println(count);
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int count; count while(scan.hasNextInt()){
			count = 1;
			int addNum = scan.nextInt() + scan.nextInt();
			while(addNum>=10){
				count++;
				addNum/=10;
			}
			System.out.println(count);
		} scan.hasNextInt() scan.hasNextInt scan {
			count = 1;
			int addNum = scan.nextInt() + scan.nextInt();
			while(addNum>=10){
				count++;
				addNum/=10;
			}
			System.out.println(count);
		} count = 1 count 1 int addNum = scan.nextInt() + scan.nextInt(); addNum scan.nextInt() + scan.nextInt() scan.nextInt() scan.nextInt scan scan.nextInt() scan.nextInt scan while(addNum>=10){
				count++;
				addNum/=10;
			} addNum>=10 addNum 10 {
				count++;
				addNum/=10;
			} count++ count addNum/=10 addNum 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 scan = new Scanner(System.in);
		int count;
		
		while(scan.hasNextInt()){
			count = 1;
			int addNum = scan.nextInt() + scan.nextInt();
			while(addNum>=10){
				count++;
				addNum/=10;
			}
			System.out.println(count);
		}
	}
}