import java.util.Scanner;
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int Dig = 1;
			int a = sc.nextInt();
			int b = sc.nextInt();
			int kei = a+b;
			while(kei/10 != 0){
				Dig ++;
				kei /= 10;
			}
			System.out.println(Dig);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int Dig = 1;
			int a = sc.nextInt();
			int b = sc.nextInt();
			int kei = a+b;
			while(kei/10 != 0){
				Dig ++;
				kei /= 10;
			}
			System.out.println(Dig);
		}
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int Dig = 1;
			int a = sc.nextInt();
			int b = sc.nextInt();
			int kei = a+b;
			while(kei/10 != 0){
				Dig ++;
				kei /= 10;
			}
			System.out.println(Dig);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int Dig = 1;
			int a = sc.nextInt();
			int b = sc.nextInt();
			int kei = a+b;
			while(kei/10 != 0){
				Dig ++;
				kei /= 10;
			}
			System.out.println(Dig);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while(sc.hasNext()){
			int Dig = 1;
			int a = sc.nextInt();
			int b = sc.nextInt();
			int kei = a+b;
			while(kei/10 != 0){
				Dig ++;
				kei /= 10;
			}
			System.out.println(Dig);
		} sc.hasNext() sc.hasNext sc {
			int Dig = 1;
			int a = sc.nextInt();
			int b = sc.nextInt();
			int kei = a+b;
			while(kei/10 != 0){
				Dig ++;
				kei /= 10;
			}
			System.out.println(Dig);
		} int Dig = 1; Dig 1 int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int kei = a+b; kei a+b a b while(kei/10 != 0){
				Dig ++;
				kei /= 10;
			} kei/10 != 0 kei/10 kei 10 0 {
				Dig ++;
				kei /= 10;
			} Dig ++ Dig kei /= 10 kei 10 System.out.println(Dig) System.out.println System.out System System.out Dig String[] args args public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int Dig = 1;
			int a = sc.nextInt();
			int b = sc.nextInt();
			int kei = a+b;
			while(kei/10 != 0){
				Dig ++;
				kei /= 10;
			}
			System.out.println(Dig);
		}
	}
} public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int Dig = 1;
			int a = sc.nextInt();
			int b = sc.nextInt();
			int kei = a+b;
			while(kei/10 != 0){
				Dig ++;
				kei /= 10;
			}
			System.out.println(Dig);
		}
	}
} Main
import java.util.Scanner;
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			int Dig = 1;
			int a = sc.nextInt();
			int b = sc.nextInt();
			int kei = a+b;
			while(kei/10 != 0){
				Dig ++;
				kei /= 10;
			}
			System.out.println(Dig);
		}
	}
}