import java.util.Scanner;

public class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int f_num,s_num;
		while(sc.hasNextInt()){
			f_num = sc.nextInt();
			s_num =sc.nextInt();
			System.out.println(String.valueOf(f_num + s_num).length());
		}
		sc.close();
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int f_num,s_num;
		while(sc.hasNextInt()){
			f_num = sc.nextInt();
			s_num =sc.nextInt();
			System.out.println(String.valueOf(f_num + s_num).length());
		}
		sc.close();
	}
} Main public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int f_num,s_num;
		while(sc.hasNextInt()){
			f_num = sc.nextInt();
			s_num =sc.nextInt();
			System.out.println(String.valueOf(f_num + s_num).length());
		}
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		int f_num,s_num;
		while(sc.hasNextInt()){
			f_num = sc.nextInt();
			s_num =sc.nextInt();
			System.out.println(String.valueOf(f_num + s_num).length());
		}
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int f_num f_num s_num; s_num while(sc.hasNextInt()){
			f_num = sc.nextInt();
			s_num =sc.nextInt();
			System.out.println(String.valueOf(f_num + s_num).length());
		} sc.hasNextInt() sc.hasNextInt sc {
			f_num = sc.nextInt();
			s_num =sc.nextInt();
			System.out.println(String.valueOf(f_num + s_num).length());
		} f_num = sc.nextInt() f_num sc.nextInt() sc.nextInt sc s_num =sc.nextInt() s_num sc.nextInt() sc.nextInt sc System.out.println(String.valueOf(f_num + s_num).length()) System.out.println System.out System System.out String.valueOf(f_num + s_num).length() String.valueOf(f_num + s_num).length String.valueOf(f_num + s_num) String.valueOf String f_num + s_num f_num s_num sc.close() sc.close sc String args[] args public class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int f_num,s_num;
		while(sc.hasNextInt()){
			f_num = sc.nextInt();
			s_num =sc.nextInt();
			System.out.println(String.valueOf(f_num + s_num).length());
		}
		sc.close();
	}
} public class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int f_num,s_num;
		while(sc.hasNextInt()){
			f_num = sc.nextInt();
			s_num =sc.nextInt();
			System.out.println(String.valueOf(f_num + s_num).length());
		}
		sc.close();
	}
} Main
import java.util.Scanner;

public class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int f_num,s_num;
		while(sc.hasNextInt()){
			f_num = sc.nextInt();
			s_num =sc.nextInt();
			System.out.println(String.valueOf(f_num + s_num).length());
		}
		sc.close();
	}
}