import java.util.Scanner;

public class Main
{
    public static void main(String... args)
    {
        final Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            final int a = scanner.nextInt();
            final int b = scanner.nextInt();
            System.out.println(Integer.toString(a + b).length());
        }
    }
} import java.util.Scanner; Scanner java.util public class Main
{
    public static void main(String... args)
    {
        final Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            final int a = scanner.nextInt();
            final int b = scanner.nextInt();
            System.out.println(Integer.toString(a + b).length());
        }
    }
} Main public static void main(String... args)
    {
        final Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            final int a = scanner.nextInt();
            final int b = scanner.nextInt();
            System.out.println(Integer.toString(a + b).length());
        }
    } main {
        final Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            final int a = scanner.nextInt();
            final int b = scanner.nextInt();
            System.out.println(Integer.toString(a + b).length());
        }
    } final Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) while (scanner.hasNext()) {
            final int a = scanner.nextInt();
            final int b = scanner.nextInt();
            System.out.println(Integer.toString(a + b).length());
        } scanner.hasNext() scanner.hasNext scanner {
            final int a = scanner.nextInt();
            final int b = scanner.nextInt();
            System.out.println(Integer.toString(a + b).length());
        } final int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner final int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner System.out.println(Integer.toString(a + b).length()) System.out.println System.out System System.out Integer.toString(a + b).length() Integer.toString(a + b).length Integer.toString(a + b) Integer.toString Integer a + b a b String... args args public class Main
{
    public static void main(String... args)
    {
        final Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            final int a = scanner.nextInt();
            final int b = scanner.nextInt();
            System.out.println(Integer.toString(a + b).length());
        }
    }
} public class Main
{
    public static void main(String... args)
    {
        final Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            final int a = scanner.nextInt();
            final int b = scanner.nextInt();
            System.out.println(Integer.toString(a + b).length());
        }
    }
} Main
import java.util.Scanner;

public class Main
{
    public static void main(String... args)
    {
        final Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            final int a = scanner.nextInt();
            final int b = scanner.nextInt();
            System.out.println(Integer.toString(a + b).length());
        }
    }
}