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

public class Main {

    public static void main(String[] argv) throws IOException {
        //*
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        while(true) {
            String s = in.readLine();
            if (s == null) {
                break;
            }
            f(s);
        }
        //*/
    }

    public static void f(String s) {
        String[] sp = s.split(" ");
        String ans = String.valueOf(Integer.parseInt(sp[0]) + Integer.parseInt(sp[1]));
        System.out.println(ans.length());
    }
} import java.io.*; io.* java import java.util.*; util.* java public class Main {

    public static void main(String[] argv) throws IOException {
        //*
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        while(true) {
            String s = in.readLine();
            if (s == null) {
                break;
            }
            f(s);
        }
        //*/
    }

    public static void f(String s) {
        String[] sp = s.split(" ");
        String ans = String.valueOf(Integer.parseInt(sp[0]) + Integer.parseInt(sp[1]));
        System.out.println(ans.length());
    }
} Main public static void main(String[] argv) throws IOException {
        //*
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        while(true) {
            String s = in.readLine();
            if (s == null) {
                break;
            }
            f(s);
        }
        //*/
    } main {
        //*
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        while(true) {
            String s = in.readLine();
            if (s == null) {
                break;
            }
            f(s);
        }
        //*/
    } BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) while(true) {
            String s = in.readLine();
            if (s == null) {
                break;
            }
            f(s);
        } true {
            String s = in.readLine();
            if (s == null) {
                break;
            }
            f(s);
        } String s = in.readLine(); s in.readLine() in.readLine in if (s == null) {
                break;
            } s == null s null {
                break;
            } break; f(s) f s String[] argv argv public static void f(String s) {
        String[] sp = s.split(" ");
        String ans = String.valueOf(Integer.parseInt(sp[0]) + Integer.parseInt(sp[1]));
        System.out.println(ans.length());
    } f {
        String[] sp = s.split(" ");
        String ans = String.valueOf(Integer.parseInt(sp[0]) + Integer.parseInt(sp[1]));
        System.out.println(ans.length());
    } String[] sp = s.split(" "); sp s.split(" ") s.split s " " String ans = String.valueOf(Integer.parseInt(sp[0]) + Integer.parseInt(sp[1])); ans String.valueOf(Integer.parseInt(sp[0]) + Integer.parseInt(sp[1])) String.valueOf String Integer.parseInt(sp[0]) + Integer.parseInt(sp[1]) Integer.parseInt(sp[0]) Integer.parseInt Integer sp[0] sp 0 Integer.parseInt(sp[1]) Integer.parseInt Integer sp[1] sp 1 System.out.println(ans.length()) System.out.println System.out System System.out ans.length() ans.length ans String s s public class Main {

    public static void main(String[] argv) throws IOException {
        //*
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        while(true) {
            String s = in.readLine();
            if (s == null) {
                break;
            }
            f(s);
        }
        //*/
    }

    public static void f(String s) {
        String[] sp = s.split(" ");
        String ans = String.valueOf(Integer.parseInt(sp[0]) + Integer.parseInt(sp[1]));
        System.out.println(ans.length());
    }
} public class Main {

    public static void main(String[] argv) throws IOException {
        //*
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        while(true) {
            String s = in.readLine();
            if (s == null) {
                break;
            }
            f(s);
        }
        //*/
    }

    public static void f(String s) {
        String[] sp = s.split(" ");
        String ans = String.valueOf(Integer.parseInt(sp[0]) + Integer.parseInt(sp[1]));
        System.out.println(ans.length());
    }
} Main

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

public class Main {

    public static void main(String[] argv) throws IOException {
        //*
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        while(true) {
            String s = in.readLine();
            if (s == null) {
                break;
            }
            f(s);
        }
        //*/
    }

    public static void f(String s) {
        String[] sp = s.split(" ");
        String ans = String.valueOf(Integer.parseInt(sp[0]) + Integer.parseInt(sp[1]));
        System.out.println(ans.length());
    }
}