import java.io.*;
import java.util.*;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try{
            String st = br.readLine();
            while(st!=null){
            String[] s = st.split(" ",0);
            int valuelength = String.valueOf(Integer.parseInt(s[0])+Integer.parseInt(s[1])).length();
            System.out.println(valuelength);
            st = br.readLine();
            }
        }catch (Exception ex){
            System.exit(0);
        }
    }
} import java.io.*; io.* java import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try{
            String st = br.readLine();
            while(st!=null){
            String[] s = st.split(" ",0);
            int valuelength = String.valueOf(Integer.parseInt(s[0])+Integer.parseInt(s[1])).length();
            System.out.println(valuelength);
            st = br.readLine();
            }
        }catch (Exception ex){
            System.exit(0);
        }
    }
} Main public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try{
            String st = br.readLine();
            while(st!=null){
            String[] s = st.split(" ",0);
            int valuelength = String.valueOf(Integer.parseInt(s[0])+Integer.parseInt(s[1])).length();
            System.out.println(valuelength);
            st = br.readLine();
            }
        }catch (Exception ex){
            System.exit(0);
        }
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try{
            String st = br.readLine();
            while(st!=null){
            String[] s = st.split(" ",0);
            int valuelength = String.valueOf(Integer.parseInt(s[0])+Integer.parseInt(s[1])).length();
            System.out.println(valuelength);
            st = br.readLine();
            }
        }catch (Exception ex){
            System.exit(0);
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) try{
            String st = br.readLine();
            while(st!=null){
            String[] s = st.split(" ",0);
            int valuelength = String.valueOf(Integer.parseInt(s[0])+Integer.parseInt(s[1])).length();
            System.out.println(valuelength);
            st = br.readLine();
            }
        }catch (Exception ex){
            System.exit(0);
        } catch (Exception ex){
            System.exit(0);
        } Exception ex {
            System.exit(0);
        } System.exit(0) System.exit System 0 {
            String st = br.readLine();
            while(st!=null){
            String[] s = st.split(" ",0);
            int valuelength = String.valueOf(Integer.parseInt(s[0])+Integer.parseInt(s[1])).length();
            System.out.println(valuelength);
            st = br.readLine();
            }
        } String st = br.readLine(); st br.readLine() br.readLine br while(st!=null){
            String[] s = st.split(" ",0);
            int valuelength = String.valueOf(Integer.parseInt(s[0])+Integer.parseInt(s[1])).length();
            System.out.println(valuelength);
            st = br.readLine();
            } st!=null st null {
            String[] s = st.split(" ",0);
            int valuelength = String.valueOf(Integer.parseInt(s[0])+Integer.parseInt(s[1])).length();
            System.out.println(valuelength);
            st = br.readLine();
            } String[] s = st.split(" ",0); s st.split(" ",0) st.split st " " 0 int valuelength = String.valueOf(Integer.parseInt(s[0])+Integer.parseInt(s[1])).length(); valuelength String.valueOf(Integer.parseInt(s[0])+Integer.parseInt(s[1])).length() String.valueOf(Integer.parseInt(s[0])+Integer.parseInt(s[1])).length String.valueOf(Integer.parseInt(s[0])+Integer.parseInt(s[1])) String.valueOf String Integer.parseInt(s[0])+Integer.parseInt(s[1]) Integer.parseInt(s[0]) Integer.parseInt Integer s[0] s 0 Integer.parseInt(s[1]) Integer.parseInt Integer s[1] s 1 System.out.println(valuelength) System.out.println System.out System System.out valuelength st = br.readLine() st br.readLine() br.readLine br String[] args args public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try{
            String st = br.readLine();
            while(st!=null){
            String[] s = st.split(" ",0);
            int valuelength = String.valueOf(Integer.parseInt(s[0])+Integer.parseInt(s[1])).length();
            System.out.println(valuelength);
            st = br.readLine();
            }
        }catch (Exception ex){
            System.exit(0);
        }
    }
} public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try{
            String st = br.readLine();
            while(st!=null){
            String[] s = st.split(" ",0);
            int valuelength = String.valueOf(Integer.parseInt(s[0])+Integer.parseInt(s[1])).length();
            System.out.println(valuelength);
            st = br.readLine();
            }
        }catch (Exception ex){
            System.exit(0);
        }
    }
} Main
import java.io.*;
import java.util.*;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try{
            String st = br.readLine();
            while(st!=null){
            String[] s = st.split(" ",0);
            int valuelength = String.valueOf(Integer.parseInt(s[0])+Integer.parseInt(s[1])).length();
            System.out.println(valuelength);
            st = br.readLine();
            }
        }catch (Exception ex){
            System.exit(0);
        }
    }
}