import java.io.*;
import java.util.*;
public class Main {
    public static void main(String[] args) throws IOException{
        BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));
        String t;
        while((t=buf.readLine())!=null){
            String str[]=t.split(" ");
            int x=Integer.parseInt(str[0]);
            int y=Integer.parseInt(str[1]);
         
                System.out.println((int)Math.log10(x+y)+1);
            }
        }
    } import java.io.*; io.* java import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws IOException{
        BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));
        String t;
        while((t=buf.readLine())!=null){
            String str[]=t.split(" ");
            int x=Integer.parseInt(str[0]);
            int y=Integer.parseInt(str[1]);
         
                System.out.println((int)Math.log10(x+y)+1);
            }
        }
    } Main public static void main(String[] args) throws IOException{
        BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));
        String t;
        while((t=buf.readLine())!=null){
            String str[]=t.split(" ");
            int x=Integer.parseInt(str[0]);
            int y=Integer.parseInt(str[1]);
         
                System.out.println((int)Math.log10(x+y)+1);
            }
        } main {
        BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));
        String t;
        while((t=buf.readLine())!=null){
            String str[]=t.split(" ");
            int x=Integer.parseInt(str[0]);
            int y=Integer.parseInt(str[1]);
         
                System.out.println((int)Math.log10(x+y)+1);
            }
        } BufferedReader buf=new BufferedReader(new InputStreamReader(System.in)); buf new BufferedReader(new InputStreamReader(System.in)) String t; t while((t=buf.readLine())!=null){
            String str[]=t.split(" ");
            int x=Integer.parseInt(str[0]);
            int y=Integer.parseInt(str[1]);
         
                System.out.println((int)Math.log10(x+y)+1);
            } (t=buf.readLine())!=null (t=buf.readLine()) t buf.readLine() buf.readLine buf null {
            String str[]=t.split(" ");
            int x=Integer.parseInt(str[0]);
            int y=Integer.parseInt(str[1]);
         
                System.out.println((int)Math.log10(x+y)+1);
            } String str[]=t.split(" "); str t.split(" ") t.split t " " int x=Integer.parseInt(str[0]); x Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 int y=Integer.parseInt(str[1]); y Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 System.out.println((int)Math.log10(x+y)+1) System.out.println System.out System System.out (int)Math.log10(x+y)+1 (int)Math.log10(x+y) Math.log10 Math x+y x y 1 String[] args args public class Main {
    public static void main(String[] args) throws IOException{
        BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));
        String t;
        while((t=buf.readLine())!=null){
            String str[]=t.split(" ");
            int x=Integer.parseInt(str[0]);
            int y=Integer.parseInt(str[1]);
         
                System.out.println((int)Math.log10(x+y)+1);
            }
        }
    } public class Main {
    public static void main(String[] args) throws IOException{
        BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));
        String t;
        while((t=buf.readLine())!=null){
            String str[]=t.split(" ");
            int x=Integer.parseInt(str[0]);
            int y=Integer.parseInt(str[1]);
         
                System.out.println((int)Math.log10(x+y)+1);
            }
        }
    } Main
import java.io.*;
import java.util.*;
public class Main {
    public static void main(String[] args) throws IOException{
        BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));
        String t;
        while((t=buf.readLine())!=null){
            String str[]=t.split(" ");
            int x=Integer.parseInt(str[0]);
            int y=Integer.parseInt(str[1]);
         
                System.out.println((int)Math.log10(x+y)+1);
            }
        }
    }