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