import java.util.Scanner;

class Main{
	public static void main(String[] a){
		int num1[] = new int[200];
		int num2[] = new int[200];
		int i = 0;
		Scanner scanner = new Scanner(System.in);
		while(scanner.hasNext()){
			num1[i] = Integer.parseInt(scanner.next());
			num2[i] = Integer.parseInt(scanner.next());
			System.out.println(String.valueOf(num1[i] + num2[i]).length());
			i++;
		}
		
		scanner.close();
	}
} import java.util.Scanner; Scanner java.util class Main{
	public static void main(String[] a){
		int num1[] = new int[200];
		int num2[] = new int[200];
		int i = 0;
		Scanner scanner = new Scanner(System.in);
		while(scanner.hasNext()){
			num1[i] = Integer.parseInt(scanner.next());
			num2[i] = Integer.parseInt(scanner.next());
			System.out.println(String.valueOf(num1[i] + num2[i]).length());
			i++;
		}
		
		scanner.close();
	}
} Main public static void main(String[] a){
		int num1[] = new int[200];
		int num2[] = new int[200];
		int i = 0;
		Scanner scanner = new Scanner(System.in);
		while(scanner.hasNext()){
			num1[i] = Integer.parseInt(scanner.next());
			num2[i] = Integer.parseInt(scanner.next());
			System.out.println(String.valueOf(num1[i] + num2[i]).length());
			i++;
		}
		
		scanner.close();
	} main {
		int num1[] = new int[200];
		int num2[] = new int[200];
		int i = 0;
		Scanner scanner = new Scanner(System.in);
		while(scanner.hasNext()){
			num1[i] = Integer.parseInt(scanner.next());
			num2[i] = Integer.parseInt(scanner.next());
			System.out.println(String.valueOf(num1[i] + num2[i]).length());
			i++;
		}
		
		scanner.close();
	} int num1[] = new int[200]; num1 new int[200] 200 int num2[] = new int[200]; num2 new int[200] 200 int i = 0; i 0 Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) while(scanner.hasNext()){
			num1[i] = Integer.parseInt(scanner.next());
			num2[i] = Integer.parseInt(scanner.next());
			System.out.println(String.valueOf(num1[i] + num2[i]).length());
			i++;
		} scanner.hasNext() scanner.hasNext scanner {
			num1[i] = Integer.parseInt(scanner.next());
			num2[i] = Integer.parseInt(scanner.next());
			System.out.println(String.valueOf(num1[i] + num2[i]).length());
			i++;
		} num1[i] = Integer.parseInt(scanner.next()) num1[i] num1 i Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner num2[i] = Integer.parseInt(scanner.next()) num2[i] num2 i Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner System.out.println(String.valueOf(num1[i] + num2[i]).length()) System.out.println System.out System System.out String.valueOf(num1[i] + num2[i]).length() String.valueOf(num1[i] + num2[i]).length String.valueOf(num1[i] + num2[i]) String.valueOf String num1[i] + num2[i] num1[i] num1 i num2[i] num2 i i++ i scanner.close() scanner.close scanner String[] a a
import java.util.Scanner;

class Main{
	public static void main(String[] a){
		int num1[] = new int[200];
		int num2[] = new int[200];
		int i = 0;
		Scanner scanner = new Scanner(System.in);
		while(scanner.hasNext()){
			num1[i] = Integer.parseInt(scanner.next());
			num2[i] = Integer.parseInt(scanner.next());
			System.out.println(String.valueOf(num1[i] + num2[i]).length());
			i++;
		}
		
		scanner.close();
	}
}
