import java.util.Scanner;
 
public class Main{
    Scanner sc = new Scanner(System.in);
     
    void run(){
        while(sc.hasNext()){
            int a = sc.nextInt();
            int b = sc.nextInt();
            System.out.println(String.valueOf(a+b).length());
        }
    }
     
    public static void main(String[] args) {
        new Main().run();
    }
} import java.util.Scanner; Scanner java.util public class Main{
    Scanner sc = new Scanner(System.in);
     
    void run(){
        while(sc.hasNext()){
            int a = sc.nextInt();
            int b = sc.nextInt();
            System.out.println(String.valueOf(a+b).length());
        }
    }
     
    public static void main(String[] args) {
        new Main().run();
    }
} Main Scanner sc = new Scanner(System.in); sc new Scanner(System.in) void run(){
        while(sc.hasNext()){
            int a = sc.nextInt();
            int b = sc.nextInt();
            System.out.println(String.valueOf(a+b).length());
        }
    } run {
        while(sc.hasNext()){
            int a = sc.nextInt();
            int b = sc.nextInt();
            System.out.println(String.valueOf(a+b).length());
        }
    } while(sc.hasNext()){
            int a = sc.nextInt();
            int b = sc.nextInt();
            System.out.println(String.valueOf(a+b).length());
        } sc.hasNext() sc.hasNext sc {
            int a = sc.nextInt();
            int b = sc.nextInt();
            System.out.println(String.valueOf(a+b).length());
        } int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc System.out.println(String.valueOf(a+b).length()) System.out.println System.out System System.out String.valueOf(a+b).length() String.valueOf(a+b).length String.valueOf(a+b) String.valueOf String a+b a b public static void main(String[] args) {
        new Main().run();
    } main {
        new Main().run();
    } new Main().run() new Main().run new Main() String[] args args public class Main{
    Scanner sc = new Scanner(System.in);
     
    void run(){
        while(sc.hasNext()){
            int a = sc.nextInt();
            int b = sc.nextInt();
            System.out.println(String.valueOf(a+b).length());
        }
    }
     
    public static void main(String[] args) {
        new Main().run();
    }
} public class Main{
    Scanner sc = new Scanner(System.in);
     
    void run(){
        while(sc.hasNext()){
            int a = sc.nextInt();
            int b = sc.nextInt();
            System.out.println(String.valueOf(a+b).length());
        }
    }
     
    public static void main(String[] args) {
        new Main().run();
    }
} Main
import java.util.Scanner;
 
public class Main{
    Scanner sc = new Scanner(System.in);
     
    void run(){
        while(sc.hasNext()){
            int a = sc.nextInt();
            int b = sc.nextInt();
            System.out.println(String.valueOf(a+b).length());
        }
    }
     
    public static void main(String[] args) {
        new Main().run();
    }
}