/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
//package aojdigitnumber;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

/**
 *
 * @author in2
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        
        Scanner sc = new Scanner(System.in);
        while( sc.hasNext() ){
            int a = sc.nextInt();
            int b = sc.nextInt();
            int c = a + b;
            int count = 0;
            while(c!=0){
                c = c/10;
                count++;
            }
           System.out.println(count);
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Scanner; Scanner java.util public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        
        Scanner sc = new Scanner(System.in);
        while( sc.hasNext() ){
            int a = sc.nextInt();
            int b = sc.nextInt();
            int c = a + b;
            int count = 0;
            while(c!=0){
                c = c/10;
                count++;
            }
           System.out.println(count);
        }
    }
} Main /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        
        Scanner sc = new Scanner(System.in);
        while( sc.hasNext() ){
            int a = sc.nextInt();
            int b = sc.nextInt();
            int c = a + b;
            int count = 0;
            while(c!=0){
                c = c/10;
                count++;
            }
           System.out.println(count);
        }
    } main {
        // TODO code application logic here
        
        Scanner sc = new Scanner(System.in);
        while( sc.hasNext() ){
            int a = sc.nextInt();
            int b = sc.nextInt();
            int c = a + b;
            int count = 0;
            while(c!=0){
                c = c/10;
                count++;
            }
           System.out.println(count);
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while( sc.hasNext() ){
            int a = sc.nextInt();
            int b = sc.nextInt();
            int c = a + b;
            int count = 0;
            while(c!=0){
                c = c/10;
                count++;
            }
           System.out.println(count);
        } sc.hasNext() sc.hasNext sc {
            int a = sc.nextInt();
            int b = sc.nextInt();
            int c = a + b;
            int count = 0;
            while(c!=0){
                c = c/10;
                count++;
            }
           System.out.println(count);
        } int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int c = a + b; c a + b a b int count = 0; count 0 while(c!=0){
                c = c/10;
                count++;
            } c!=0 c 0 {
                c = c/10;
                count++;
            } c = c/10 c c/10 c 10 count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        
        Scanner sc = new Scanner(System.in);
        while( sc.hasNext() ){
            int a = sc.nextInt();
            int b = sc.nextInt();
            int c = a + b;
            int count = 0;
            while(c!=0){
                c = c/10;
                count++;
            }
           System.out.println(count);
        }
    }
} public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        
        Scanner sc = new Scanner(System.in);
        while( sc.hasNext() ){
            int a = sc.nextInt();
            int b = sc.nextInt();
            int c = a + b;
            int count = 0;
            while(c!=0){
                c = c/10;
                count++;
            }
           System.out.println(count);
        }
    }
} Main
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
//package aojdigitnumber;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

/**
 *
 * @author in2
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        
        Scanner sc = new Scanner(System.in);
        while( sc.hasNext() ){
            int a = sc.nextInt();
            int b = sc.nextInt();
            int c = a + b;
            int count = 0;
            while(c!=0){
                c = c/10;
                count++;
            }
           System.out.println(count);
        }
    }
}