import java.util.Scanner;

class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int tmp,count;
        while(scan.hasNext()){
            tmp=scan.nextInt()+scan.nextInt();
            for(count = 1;tmp>=10;count++,tmp/=10);
            System.out.println(count);
        }
    }
} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int tmp,count;
        while(scan.hasNext()){
            tmp=scan.nextInt()+scan.nextInt();
            for(count = 1;tmp>=10;count++,tmp/=10);
            System.out.println(count);
        }
    }
} Main public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int tmp,count;
        while(scan.hasNext()){
            tmp=scan.nextInt()+scan.nextInt();
            for(count = 1;tmp>=10;count++,tmp/=10);
            System.out.println(count);
        }
    } main {
        Scanner scan = new Scanner(System.in);
        int tmp,count;
        while(scan.hasNext()){
            tmp=scan.nextInt()+scan.nextInt();
            for(count = 1;tmp>=10;count++,tmp/=10);
            System.out.println(count);
        }
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int tmp tmp count; count while(scan.hasNext()){
            tmp=scan.nextInt()+scan.nextInt();
            for(count = 1;tmp>=10;count++,tmp/=10);
            System.out.println(count);
        } scan.hasNext() scan.hasNext scan {
            tmp=scan.nextInt()+scan.nextInt();
            for(count = 1;tmp>=10;count++,tmp/=10);
            System.out.println(count);
        } tmp=scan.nextInt()+scan.nextInt() tmp scan.nextInt()+scan.nextInt() scan.nextInt() scan.nextInt scan scan.nextInt() scan.nextInt scan for(count = 1;tmp>=10;count++,tmp/=10); count = 1; count = 1 count 1 tmp>=10 tmp 10 count++,tmp/=10 count++ count tmp/=10 tmp 10 ; System.out.println(count) System.out.println System.out System System.out count String[] args args
import java.util.Scanner;

class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int tmp,count;
        while(scan.hasNext()){
            tmp=scan.nextInt()+scan.nextInt();
            for(count = 1;tmp>=10;count++,tmp/=10);
            System.out.println(count);
        }
    }
}