
import java.util.Scanner;


public class Main{
	
	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
		int a, b;
		while(sc.hasNextInt()) {
			a = sc.nextInt();
			b = sc.nextInt();
			System.out.println(numOfDigit(a+b));
		}
		sc.close();
	}
	
	static int numOfDigit(int n) {
		return (int) Math.log10(n) + 1;
	}
} import java.util.Scanner; Scanner java.util public class Main{
	
	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
		int a, b;
		while(sc.hasNextInt()) {
			a = sc.nextInt();
			b = sc.nextInt();
			System.out.println(numOfDigit(a+b));
		}
		sc.close();
	}
	
	static int numOfDigit(int n) {
		return (int) Math.log10(n) + 1;
	}
} Main public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
		int a, b;
		while(sc.hasNextInt()) {
			a = sc.nextInt();
			b = sc.nextInt();
			System.out.println(numOfDigit(a+b));
		}
		sc.close();
	} main {

		Scanner sc = new Scanner(System.in);
		int a, b;
		while(sc.hasNextInt()) {
			a = sc.nextInt();
			b = sc.nextInt();
			System.out.println(numOfDigit(a+b));
		}
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a a b; b while(sc.hasNextInt()) {
			a = sc.nextInt();
			b = sc.nextInt();
			System.out.println(numOfDigit(a+b));
		} sc.hasNextInt() sc.hasNextInt sc {
			a = sc.nextInt();
			b = sc.nextInt();
			System.out.println(numOfDigit(a+b));
		} a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt() b sc.nextInt() sc.nextInt sc System.out.println(numOfDigit(a+b)) System.out.println System.out System System.out numOfDigit(a+b) numOfDigit a+b a b sc.close() sc.close sc String[] args args static int numOfDigit(int n) {
		return (int) Math.log10(n) + 1;
	} numOfDigit {
		return (int) Math.log10(n) + 1;
	} return (int) Math.log10(n) + 1; (int) Math.log10(n) + 1 (int) Math.log10(n) Math.log10 Math n 1 int n n public class Main{
	
	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
		int a, b;
		while(sc.hasNextInt()) {
			a = sc.nextInt();
			b = sc.nextInt();
			System.out.println(numOfDigit(a+b));
		}
		sc.close();
	}
	
	static int numOfDigit(int n) {
		return (int) Math.log10(n) + 1;
	}
} public class Main{
	
	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
		int a, b;
		while(sc.hasNextInt()) {
			a = sc.nextInt();
			b = sc.nextInt();
			System.out.println(numOfDigit(a+b));
		}
		sc.close();
	}
	
	static int numOfDigit(int n) {
		return (int) Math.log10(n) + 1;
	}
} Main

import java.util.Scanner;


public class Main{
	
	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
		int a, b;
		while(sc.hasNextInt()) {
			a = sc.nextInt();
			b = sc.nextInt();
			System.out.println(numOfDigit(a+b));
		}
		sc.close();
	}
	
	static int numOfDigit(int n) {
		return (int) Math.log10(n) + 1;
	}
}