import java.util.Scanner;

class Main{
    public static void main(String[] a){
        Scanner s = new Scanner(System.in);

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

        while(s.hasNext()){
            System.out.println(String.valueOf(s.nextInt() + s.nextInt()).length());
        }
    }
} Main public static void main(String[] a){
        Scanner s = new Scanner(System.in);

        while(s.hasNext()){
            System.out.println(String.valueOf(s.nextInt() + s.nextInt()).length());
        }
    } main {
        Scanner s = new Scanner(System.in);

        while(s.hasNext()){
            System.out.println(String.valueOf(s.nextInt() + s.nextInt()).length());
        }
    } Scanner s = new Scanner(System.in); s new Scanner(System.in) while(s.hasNext()){
            System.out.println(String.valueOf(s.nextInt() + s.nextInt()).length());
        } s.hasNext() s.hasNext s {
            System.out.println(String.valueOf(s.nextInt() + s.nextInt()).length());
        } System.out.println(String.valueOf(s.nextInt() + s.nextInt()).length()) System.out.println System.out System System.out String.valueOf(s.nextInt() + s.nextInt()).length() String.valueOf(s.nextInt() + s.nextInt()).length String.valueOf(s.nextInt() + s.nextInt()) String.valueOf String s.nextInt() + s.nextInt() s.nextInt() s.nextInt s s.nextInt() s.nextInt s String[] a a
import java.util.Scanner;

class Main{
    public static void main(String[] a){
        Scanner s = new Scanner(System.in);

        while(s.hasNext()){
            System.out.println(String.valueOf(s.nextInt() + s.nextInt()).length());
        }
    }
}