import java.io.*;

public class Main{
    public static void main(String[]args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str;

        while((str = br.readLine()) != null){
            String[] str2 = str.split(" ");
            int a = Integer.parseInt(str2[0]);
            int b = Integer.parseInt(str2[1]);

            int digits = Integer.toString(a + b).length();
            System.out.println(digits);
        }
    }
} import java.io.*; io.* java public class Main{
    public static void main(String[]args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str;

        while((str = br.readLine()) != null){
            String[] str2 = str.split(" ");
            int a = Integer.parseInt(str2[0]);
            int b = Integer.parseInt(str2[1]);

            int digits = Integer.toString(a + b).length();
            System.out.println(digits);
        }
    }
} Main public static void main(String[]args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str;

        while((str = br.readLine()) != null){
            String[] str2 = str.split(" ");
            int a = Integer.parseInt(str2[0]);
            int b = Integer.parseInt(str2[1]);

            int digits = Integer.toString(a + b).length();
            System.out.println(digits);
        }
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str;

        while((str = br.readLine()) != null){
            String[] str2 = str.split(" ");
            int a = Integer.parseInt(str2[0]);
            int b = Integer.parseInt(str2[1]);

            int digits = Integer.toString(a + b).length();
            System.out.println(digits);
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str; str while((str = br.readLine()) != null){
            String[] str2 = str.split(" ");
            int a = Integer.parseInt(str2[0]);
            int b = Integer.parseInt(str2[1]);

            int digits = Integer.toString(a + b).length();
            System.out.println(digits);
        } (str = br.readLine()) != null (str = br.readLine()) str br.readLine() br.readLine br null {
            String[] str2 = str.split(" ");
            int a = Integer.parseInt(str2[0]);
            int b = Integer.parseInt(str2[1]);

            int digits = Integer.toString(a + b).length();
            System.out.println(digits);
        } String[] str2 = str.split(" "); str2 str.split(" ") str.split str " " int a = Integer.parseInt(str2[0]); a Integer.parseInt(str2[0]) Integer.parseInt Integer str2[0] str2 0 int b = Integer.parseInt(str2[1]); b Integer.parseInt(str2[1]) Integer.parseInt Integer str2[1] str2 1 int digits = Integer.toString(a + b).length(); digits Integer.toString(a + b).length() Integer.toString(a + b).length Integer.toString(a + b) Integer.toString Integer a + b a b System.out.println(digits) System.out.println System.out System System.out digits String[]args args public class Main{
    public static void main(String[]args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str;

        while((str = br.readLine()) != null){
            String[] str2 = str.split(" ");
            int a = Integer.parseInt(str2[0]);
            int b = Integer.parseInt(str2[1]);

            int digits = Integer.toString(a + b).length();
            System.out.println(digits);
        }
    }
} public class Main{
    public static void main(String[]args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str;

        while((str = br.readLine()) != null){
            String[] str2 = str.split(" ");
            int a = Integer.parseInt(str2[0]);
            int b = Integer.parseInt(str2[1]);

            int digits = Integer.toString(a + b).length();
            System.out.println(digits);
        }
    }
} Main
import java.io.*;

public class Main{
    public static void main(String[]args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str;

        while((str = br.readLine()) != null){
            String[] str2 = str.split(" ");
            int a = Integer.parseInt(str2[0]);
            int b = Integer.parseInt(str2[1]);

            int digits = Integer.toString(a + b).length();
            System.out.println(digits);
        }
    }
}