import java.util.Scanner;

public class Main {

    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            String s = sc.nextLine();
            String[] req = s.split(" ");
            System.out.println(String.valueOf(Integer.parseInt(req[0]) + Integer.parseInt(req[1])).length());
        }

    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            String s = sc.nextLine();
            String[] req = s.split(" ");
            System.out.println(String.valueOf(Integer.parseInt(req[0]) + Integer.parseInt(req[1])).length());
        }

    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            String s = sc.nextLine();
            String[] req = s.split(" ");
            System.out.println(String.valueOf(Integer.parseInt(req[0]) + Integer.parseInt(req[1])).length());
        }

    } main {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            String s = sc.nextLine();
            String[] req = s.split(" ");
            System.out.println(String.valueOf(Integer.parseInt(req[0]) + Integer.parseInt(req[1])).length());
        }

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while (sc.hasNext()) {
            String s = sc.nextLine();
            String[] req = s.split(" ");
            System.out.println(String.valueOf(Integer.parseInt(req[0]) + Integer.parseInt(req[1])).length());
        } sc.hasNext() sc.hasNext sc {
            String s = sc.nextLine();
            String[] req = s.split(" ");
            System.out.println(String.valueOf(Integer.parseInt(req[0]) + Integer.parseInt(req[1])).length());
        } String s = sc.nextLine(); s sc.nextLine() sc.nextLine sc String[] req = s.split(" "); req s.split(" ") s.split s " " System.out.println(String.valueOf(Integer.parseInt(req[0]) + Integer.parseInt(req[1])).length()) System.out.println System.out System System.out String.valueOf(Integer.parseInt(req[0]) + Integer.parseInt(req[1])).length() String.valueOf(Integer.parseInt(req[0]) + Integer.parseInt(req[1])).length String.valueOf(Integer.parseInt(req[0]) + Integer.parseInt(req[1])) String.valueOf String Integer.parseInt(req[0]) + Integer.parseInt(req[1]) Integer.parseInt(req[0]) Integer.parseInt Integer req[0] req 0 Integer.parseInt(req[1]) Integer.parseInt Integer req[1] req 1 String[] args args public class Main {

    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            String s = sc.nextLine();
            String[] req = s.split(" ");
            System.out.println(String.valueOf(Integer.parseInt(req[0]) + Integer.parseInt(req[1])).length());
        }

    }
} public class Main {

    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            String s = sc.nextLine();
            String[] req = s.split(" ");
            System.out.println(String.valueOf(Integer.parseInt(req[0]) + Integer.parseInt(req[1])).length());
        }

    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            String s = sc.nextLine();
            String[] req = s.split(" ");
            System.out.println(String.valueOf(Integer.parseInt(req[0]) + Integer.parseInt(req[1])).length());
        }

    }
}