import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while ( scanner.hasNextInt() ) {
            int a = scanner.nextInt();
            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) {
        Scanner scanner = new Scanner(System.in);
        while ( scanner.hasNextInt() ) {
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            System.out.println( Integer.toString( a + b ).length() );
        }
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while ( scanner.hasNextInt() ) {
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            System.out.println( Integer.toString( a + b ).length() );
        }
    } main {
        Scanner scanner = new Scanner(System.in);
        while ( scanner.hasNextInt() ) {
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            System.out.println( Integer.toString( a + b ).length() );
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) while ( scanner.hasNextInt() ) {
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            System.out.println( Integer.toString( a + b ).length() );
        } scanner.hasNextInt() scanner.hasNextInt scanner {
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            System.out.println( Integer.toString( a + b ).length() );
        } int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner 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) {
        Scanner scanner = new Scanner(System.in);
        while ( scanner.hasNextInt() ) {
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            System.out.println( Integer.toString( a + b ).length() );
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while ( scanner.hasNextInt() ) {
            int a = scanner.nextInt();
            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) {
        Scanner scanner = new Scanner(System.in);
        while ( scanner.hasNextInt() ) {
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            System.out.println( Integer.toString( a + b ).length() );
        }
    }
}