import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
class Main {
    
    public static void main(String[] args) throws IOException {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        String str=br.readLine();
        while(true){
            try{
                StringTokenizer st=new StringTokenizer(str," ");
                int sum=Integer.parseInt(st.nextToken())+Integer.parseInt(st.nextToken());
                System.out.println(String.valueOf(sum).length());
                str=br.readLine();
            }catch(Exception e){System.exit(0);}
        }
    }
    
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.StringTokenizer; StringTokenizer java.util class Main {
    
    public static void main(String[] args) throws IOException {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        String str=br.readLine();
        while(true){
            try{
                StringTokenizer st=new StringTokenizer(str," ");
                int sum=Integer.parseInt(st.nextToken())+Integer.parseInt(st.nextToken());
                System.out.println(String.valueOf(sum).length());
                str=br.readLine();
            }catch(Exception e){System.exit(0);}
        }
    }
    
} Main public static void main(String[] args) throws IOException {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        String str=br.readLine();
        while(true){
            try{
                StringTokenizer st=new StringTokenizer(str," ");
                int sum=Integer.parseInt(st.nextToken())+Integer.parseInt(st.nextToken());
                System.out.println(String.valueOf(sum).length());
                str=br.readLine();
            }catch(Exception e){System.exit(0);}
        }
    } main {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        String str=br.readLine();
        while(true){
            try{
                StringTokenizer st=new StringTokenizer(str," ");
                int sum=Integer.parseInt(st.nextToken())+Integer.parseInt(st.nextToken());
                System.out.println(String.valueOf(sum).length());
                str=br.readLine();
            }catch(Exception e){System.exit(0);}
        }
    } BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str=br.readLine(); str br.readLine() br.readLine br while(true){
            try{
                StringTokenizer st=new StringTokenizer(str," ");
                int sum=Integer.parseInt(st.nextToken())+Integer.parseInt(st.nextToken());
                System.out.println(String.valueOf(sum).length());
                str=br.readLine();
            }catch(Exception e){System.exit(0);}
        } true {
            try{
                StringTokenizer st=new StringTokenizer(str," ");
                int sum=Integer.parseInt(st.nextToken())+Integer.parseInt(st.nextToken());
                System.out.println(String.valueOf(sum).length());
                str=br.readLine();
            }catch(Exception e){System.exit(0);}
        } try{
                StringTokenizer st=new StringTokenizer(str," ");
                int sum=Integer.parseInt(st.nextToken())+Integer.parseInt(st.nextToken());
                System.out.println(String.valueOf(sum).length());
                str=br.readLine();
            }catch(Exception e){System.exit(0);} catch(Exception e){System.exit(0);} Exception e {System.exit(0);} System.exit(0) System.exit System 0 {
                StringTokenizer st=new StringTokenizer(str," ");
                int sum=Integer.parseInt(st.nextToken())+Integer.parseInt(st.nextToken());
                System.out.println(String.valueOf(sum).length());
                str=br.readLine();
            } StringTokenizer st=new StringTokenizer(str," "); st new StringTokenizer(str," ") int sum=Integer.parseInt(st.nextToken())+Integer.parseInt(st.nextToken()); sum Integer.parseInt(st.nextToken())+Integer.parseInt(st.nextToken()) Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st System.out.println(String.valueOf(sum).length()) System.out.println System.out System System.out String.valueOf(sum).length() String.valueOf(sum).length String.valueOf(sum) String.valueOf String sum str=br.readLine() str br.readLine() br.readLine br String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
class Main {
    
    public static void main(String[] args) throws IOException {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        String str=br.readLine();
        while(true){
            try{
                StringTokenizer st=new StringTokenizer(str," ");
                int sum=Integer.parseInt(st.nextToken())+Integer.parseInt(st.nextToken());
                System.out.println(String.valueOf(sum).length());
                str=br.readLine();
            }catch(Exception e){System.exit(0);}
        }
    }
    
}