
import java.util.Scanner;

public class Main{
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        
        
        
       while(input.hasNextInt()){
            int x1 =input.nextInt();
           int x2 =input.nextInt();
            int x3 = x1+x2;
        String s1 = String.valueOf(x3);
        System.out.println(s1.length());
        }}
    } import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        
        
        
       while(input.hasNextInt()){
            int x1 =input.nextInt();
           int x2 =input.nextInt();
            int x3 = x1+x2;
        String s1 = String.valueOf(x3);
        System.out.println(s1.length());
        }}
    } Main public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        
        
        
       while(input.hasNextInt()){
            int x1 =input.nextInt();
           int x2 =input.nextInt();
            int x3 = x1+x2;
        String s1 = String.valueOf(x3);
        System.out.println(s1.length());
        }} main {
        Scanner input = new Scanner(System.in);
        
        
        
       while(input.hasNextInt()){
            int x1 =input.nextInt();
           int x2 =input.nextInt();
            int x3 = x1+x2;
        String s1 = String.valueOf(x3);
        System.out.println(s1.length());
        }} Scanner input = new Scanner(System.in); input new Scanner(System.in) while(input.hasNextInt()){
            int x1 =input.nextInt();
           int x2 =input.nextInt();
            int x3 = x1+x2;
        String s1 = String.valueOf(x3);
        System.out.println(s1.length());
        } input.hasNextInt() input.hasNextInt input {
            int x1 =input.nextInt();
           int x2 =input.nextInt();
            int x3 = x1+x2;
        String s1 = String.valueOf(x3);
        System.out.println(s1.length());
        } int x1 =input.nextInt(); x1 input.nextInt() input.nextInt input int x2 =input.nextInt(); x2 input.nextInt() input.nextInt input int x3 = x1+x2; x3 x1+x2 x1 x2 String s1 = String.valueOf(x3); s1 String.valueOf(x3) String.valueOf String x3 System.out.println(s1.length()) System.out.println System.out System System.out s1.length() s1.length s1 String[] args args public class Main{
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        
        
        
       while(input.hasNextInt()){
            int x1 =input.nextInt();
           int x2 =input.nextInt();
            int x3 = x1+x2;
        String s1 = String.valueOf(x3);
        System.out.println(s1.length());
        }}
    } public class Main{
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        
        
        
       while(input.hasNextInt()){
            int x1 =input.nextInt();
           int x2 =input.nextInt();
            int x3 = x1+x2;
        String s1 = String.valueOf(x3);
        System.out.println(s1.length());
        }}
    } Main

import java.util.Scanner;

public class Main{
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        
        
        
       while(input.hasNextInt()){
            int x1 =input.nextInt();
           int x2 =input.nextInt();
            int x3 = x1+x2;
        String s1 = String.valueOf(x3);
        System.out.println(s1.length());
        }}
    }