import java.io.*;
public class Main {
    public static void main(String[] args)throws IOException{
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        String s;
        try{
            while((s=br.readLine())!=null){
                String[] str=s.split(" ");
                int n=Integer.parseInt(str[0])+Integer.parseInt(str[1]);
                System.out.println(Integer.toString(n).length());
            }
            br.close();
        }catch(Exception e){
        }
    }
} 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 s;
        try{
            while((s=br.readLine())!=null){
                String[] str=s.split(" ");
                int n=Integer.parseInt(str[0])+Integer.parseInt(str[1]);
                System.out.println(Integer.toString(n).length());
            }
            br.close();
        }catch(Exception e){
        }
    }
} Main public static void main(String[] args)throws IOException{
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        String s;
        try{
            while((s=br.readLine())!=null){
                String[] str=s.split(" ");
                int n=Integer.parseInt(str[0])+Integer.parseInt(str[1]);
                System.out.println(Integer.toString(n).length());
            }
            br.close();
        }catch(Exception e){
        }
    } main {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        String s;
        try{
            while((s=br.readLine())!=null){
                String[] str=s.split(" ");
                int n=Integer.parseInt(str[0])+Integer.parseInt(str[1]);
                System.out.println(Integer.toString(n).length());
            }
            br.close();
        }catch(Exception e){
        }
    } BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String s; s try{
            while((s=br.readLine())!=null){
                String[] str=s.split(" ");
                int n=Integer.parseInt(str[0])+Integer.parseInt(str[1]);
                System.out.println(Integer.toString(n).length());
            }
            br.close();
        }catch(Exception e){
        } catch(Exception e){
        } Exception e {
        } {
            while((s=br.readLine())!=null){
                String[] str=s.split(" ");
                int n=Integer.parseInt(str[0])+Integer.parseInt(str[1]);
                System.out.println(Integer.toString(n).length());
            }
            br.close();
        } while((s=br.readLine())!=null){
                String[] str=s.split(" ");
                int n=Integer.parseInt(str[0])+Integer.parseInt(str[1]);
                System.out.println(Integer.toString(n).length());
            } (s=br.readLine())!=null (s=br.readLine()) s br.readLine() br.readLine br null {
                String[] str=s.split(" ");
                int n=Integer.parseInt(str[0])+Integer.parseInt(str[1]);
                System.out.println(Integer.toString(n).length());
            } String[] str=s.split(" "); str s.split(" ") s.split s " " int n=Integer.parseInt(str[0])+Integer.parseInt(str[1]); n Integer.parseInt(str[0])+Integer.parseInt(str[1]) Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 System.out.println(Integer.toString(n).length()) System.out.println System.out System System.out Integer.toString(n).length() Integer.toString(n).length Integer.toString(n) Integer.toString Integer n br.close() br.close br String[] args args public class Main {
    public static void main(String[] args)throws IOException{
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        String s;
        try{
            while((s=br.readLine())!=null){
                String[] str=s.split(" ");
                int n=Integer.parseInt(str[0])+Integer.parseInt(str[1]);
                System.out.println(Integer.toString(n).length());
            }
            br.close();
        }catch(Exception e){
        }
    }
} public class Main {
    public static void main(String[] args)throws IOException{
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        String s;
        try{
            while((s=br.readLine())!=null){
                String[] str=s.split(" ");
                int n=Integer.parseInt(str[0])+Integer.parseInt(str[1]);
                System.out.println(Integer.toString(n).length());
            }
            br.close();
        }catch(Exception e){
        }
    }
} Main
import java.io.*;
public class Main {
    public static void main(String[] args)throws IOException{
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        String s;
        try{
            while((s=br.readLine())!=null){
                String[] str=s.split(" ");
                int n=Integer.parseInt(str[0])+Integer.parseInt(str[1]);
                System.out.println(Integer.toString(n).length());
            }
            br.close();
        }catch(Exception e){
        }
    }
}