import java.util.Scanner;

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

class Main
{
    public static void main(String[] agrs)
    {
        Scanner input = new Scanner(System.in);
        while(input.hasNext())
        {
            int a = input.nextInt();
            int b = input.nextInt();
            String s = Integer.toString(a + b);
            System.out.println(s.length());
        }
    }
}