import java.util.*;
import java.util.Scanner ; 
import java.math.BigInteger;

public class Main {
    public static void main(String[] args) {
        BigInteger a,b,r;
        Scanner sc = new Scanner(System.in);
        String s;
        while(sc.hasNextBigInteger()){
            a = sc.nextBigInteger();
            b = sc.nextBigInteger();
            r = a.add(b);
            s = r.toString();
            System.out.println(s.length());
        }  
    }
} import java.util.*; util.* java import java.util.Scanner ; Scanner java.util import java.math.BigInteger; BigInteger java.math public class Main {
    public static void main(String[] args) {
        BigInteger a,b,r;
        Scanner sc = new Scanner(System.in);
        String s;
        while(sc.hasNextBigInteger()){
            a = sc.nextBigInteger();
            b = sc.nextBigInteger();
            r = a.add(b);
            s = r.toString();
            System.out.println(s.length());
        }  
    }
} Main public static void main(String[] args) {
        BigInteger a,b,r;
        Scanner sc = new Scanner(System.in);
        String s;
        while(sc.hasNextBigInteger()){
            a = sc.nextBigInteger();
            b = sc.nextBigInteger();
            r = a.add(b);
            s = r.toString();
            System.out.println(s.length());
        }  
    } main {
        BigInteger a,b,r;
        Scanner sc = new Scanner(System.in);
        String s;
        while(sc.hasNextBigInteger()){
            a = sc.nextBigInteger();
            b = sc.nextBigInteger();
            r = a.add(b);
            s = r.toString();
            System.out.println(s.length());
        }  
    } BigInteger a a b b r; r Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s; s while(sc.hasNextBigInteger()){
            a = sc.nextBigInteger();
            b = sc.nextBigInteger();
            r = a.add(b);
            s = r.toString();
            System.out.println(s.length());
        } sc.hasNextBigInteger() sc.hasNextBigInteger sc {
            a = sc.nextBigInteger();
            b = sc.nextBigInteger();
            r = a.add(b);
            s = r.toString();
            System.out.println(s.length());
        } a = sc.nextBigInteger() a sc.nextBigInteger() sc.nextBigInteger sc b = sc.nextBigInteger() b sc.nextBigInteger() sc.nextBigInteger sc r = a.add(b) r a.add(b) a.add a b s = r.toString() s r.toString() r.toString r System.out.println(s.length()) System.out.println System.out System System.out s.length() s.length s String[] args args public class Main {
    public static void main(String[] args) {
        BigInteger a,b,r;
        Scanner sc = new Scanner(System.in);
        String s;
        while(sc.hasNextBigInteger()){
            a = sc.nextBigInteger();
            b = sc.nextBigInteger();
            r = a.add(b);
            s = r.toString();
            System.out.println(s.length());
        }  
    }
} public class Main {
    public static void main(String[] args) {
        BigInteger a,b,r;
        Scanner sc = new Scanner(System.in);
        String s;
        while(sc.hasNextBigInteger()){
            a = sc.nextBigInteger();
            b = sc.nextBigInteger();
            r = a.add(b);
            s = r.toString();
            System.out.println(s.length());
        }  
    }
} Main
import java.util.*;
import java.util.Scanner ; 
import java.math.BigInteger;

public class Main {
    public static void main(String[] args) {
        BigInteger a,b,r;
        Scanner sc = new Scanner(System.in);
        String s;
        while(sc.hasNextBigInteger()){
            a = sc.nextBigInteger();
            b = sc.nextBigInteger();
            r = a.add(b);
            s = r.toString();
            System.out.println(s.length());
        }  
    }
}