import java.util.Scanner;


public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		
		Scanner sc = new Scanner(System.in);
		
		int a,b,sum;
		
		while (sc.hasNextInt()) {
			a = sc.nextInt();
			b = sc.nextInt();
			
			sum = a + b;
			
			System.out.println(Integer.toString(sum).length());
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		
		Scanner sc = new Scanner(System.in);
		
		int a,b,sum;
		
		while (sc.hasNextInt()) {
			a = sc.nextInt();
			b = sc.nextInt();
			
			sum = a + b;
			
			System.out.println(Integer.toString(sum).length());
		}
	}
} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		
		Scanner sc = new Scanner(System.in);
		
		int a,b,sum;
		
		while (sc.hasNextInt()) {
			a = sc.nextInt();
			b = sc.nextInt();
			
			sum = a + b;
			
			System.out.println(Integer.toString(sum).length());
		}
	} main {
		// TODO 自動生成されたメソッド・スタブ
		
		Scanner sc = new Scanner(System.in);
		
		int a,b,sum;
		
		while (sc.hasNextInt()) {
			a = sc.nextInt();
			b = sc.nextInt();
			
			sum = a + b;
			
			System.out.println(Integer.toString(sum).length());
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a a b b sum; sum while (sc.hasNextInt()) {
			a = sc.nextInt();
			b = sc.nextInt();
			
			sum = a + b;
			
			System.out.println(Integer.toString(sum).length());
		} sc.hasNextInt() sc.hasNextInt sc {
			a = sc.nextInt();
			b = sc.nextInt();
			
			sum = a + b;
			
			System.out.println(Integer.toString(sum).length());
		} a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt() b sc.nextInt() sc.nextInt sc sum = a + b sum a + b a b System.out.println(Integer.toString(sum).length()) System.out.println System.out System System.out Integer.toString(sum).length() Integer.toString(sum).length Integer.toString(sum) Integer.toString Integer sum String[] args args public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		
		Scanner sc = new Scanner(System.in);
		
		int a,b,sum;
		
		while (sc.hasNextInt()) {
			a = sc.nextInt();
			b = sc.nextInt();
			
			sum = a + b;
			
			System.out.println(Integer.toString(sum).length());
		}
	}
} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		
		Scanner sc = new Scanner(System.in);
		
		int a,b,sum;
		
		while (sc.hasNextInt()) {
			a = sc.nextInt();
			b = sc.nextInt();
			
			sum = a + b;
			
			System.out.println(Integer.toString(sum).length());
		}
	}
} Main
import java.util.Scanner;


public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		
		Scanner sc = new Scanner(System.in);
		
		int a,b,sum;
		
		while (sc.hasNextInt()) {
			a = sc.nextInt();
			b = sc.nextInt();
			
			sum = a + b;
			
			System.out.println(Integer.toString(sum).length());
		}
	}
}