import java.util.Scanner;
class Main{
    public static void main(String[] a){
    	int fa = 0;
    	int fb = 0;
    	Scanner scan = new Scanner(System.in);
    	while (scan.hasNext()){
    	fa = scan.nextInt();
    	fb = scan.nextInt();
    	int sum = fa + fb;
    	 System.out.println((int) Math.log10(sum) + 1);
    	}
    }
 } import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[] a){
    	int fa = 0;
    	int fb = 0;
    	Scanner scan = new Scanner(System.in);
    	while (scan.hasNext()){
    	fa = scan.nextInt();
    	fb = scan.nextInt();
    	int sum = fa + fb;
    	 System.out.println((int) Math.log10(sum) + 1);
    	}
    }
 } Main public static void main(String[] a){
    	int fa = 0;
    	int fb = 0;
    	Scanner scan = new Scanner(System.in);
    	while (scan.hasNext()){
    	fa = scan.nextInt();
    	fb = scan.nextInt();
    	int sum = fa + fb;
    	 System.out.println((int) Math.log10(sum) + 1);
    	}
    } main {
    	int fa = 0;
    	int fb = 0;
    	Scanner scan = new Scanner(System.in);
    	while (scan.hasNext()){
    	fa = scan.nextInt();
    	fb = scan.nextInt();
    	int sum = fa + fb;
    	 System.out.println((int) Math.log10(sum) + 1);
    	}
    } int fa = 0; fa 0 int fb = 0; fb 0 Scanner scan = new Scanner(System.in); scan new Scanner(System.in) while (scan.hasNext()){
    	fa = scan.nextInt();
    	fb = scan.nextInt();
    	int sum = fa + fb;
    	 System.out.println((int) Math.log10(sum) + 1);
    	} scan.hasNext() scan.hasNext scan {
    	fa = scan.nextInt();
    	fb = scan.nextInt();
    	int sum = fa + fb;
    	 System.out.println((int) Math.log10(sum) + 1);
    	} fa = scan.nextInt() fa scan.nextInt() scan.nextInt scan fb = scan.nextInt() fb scan.nextInt() scan.nextInt scan int sum = fa + fb; sum fa + fb fa fb System.out.println((int) Math.log10(sum) + 1) System.out.println System.out System System.out (int) Math.log10(sum) + 1 (int) Math.log10(sum) Math.log10 Math sum 1 String[] a a
import java.util.Scanner;
class Main{
    public static void main(String[] a){
    	int fa = 0;
    	int fb = 0;
    	Scanner scan = new Scanner(System.in);
    	while (scan.hasNext()){
    	fa = scan.nextInt();
    	fb = scan.nextInt();
    	int sum = fa + fb;
    	 System.out.println((int) Math.log10(sum) + 1);
    	}
    }
 }