import java.util.*;
import java.io.*;
import java.math.*;

class Main{
    public static void main(String[] args){
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
        try{
            while(null != (line = br.readLine()))
            {
                String[] strArr = line.split(" ");
                System.out.println(String.valueOf(Integer.parseInt(strArr[0]) + Integer.parseInt(strArr[1])).length());
            }
        }
        catch(Exception e){
        }
    }
} import java.util.*; util.* java import java.io.*; io.* java import java.math.*; math.* java class Main{
    public static void main(String[] args){
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
        try{
            while(null != (line = br.readLine()))
            {
                String[] strArr = line.split(" ");
                System.out.println(String.valueOf(Integer.parseInt(strArr[0]) + Integer.parseInt(strArr[1])).length());
            }
        }
        catch(Exception e){
        }
    }
} Main public static void main(String[] args){
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
        try{
            while(null != (line = br.readLine()))
            {
                String[] strArr = line.split(" ");
                System.out.println(String.valueOf(Integer.parseInt(strArr[0]) + Integer.parseInt(strArr[1])).length());
            }
        }
        catch(Exception e){
        }
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
        try{
            while(null != (line = br.readLine()))
            {
                String[] strArr = line.split(" ");
                System.out.println(String.valueOf(Integer.parseInt(strArr[0]) + Integer.parseInt(strArr[1])).length());
            }
        }
        catch(Exception e){
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line; line try{
            while(null != (line = br.readLine()))
            {
                String[] strArr = line.split(" ");
                System.out.println(String.valueOf(Integer.parseInt(strArr[0]) + Integer.parseInt(strArr[1])).length());
            }
        }
        catch(Exception e){
        } catch(Exception e){
        } Exception e {
        } {
            while(null != (line = br.readLine()))
            {
                String[] strArr = line.split(" ");
                System.out.println(String.valueOf(Integer.parseInt(strArr[0]) + Integer.parseInt(strArr[1])).length());
            }
        } while(null != (line = br.readLine()))
            {
                String[] strArr = line.split(" ");
                System.out.println(String.valueOf(Integer.parseInt(strArr[0]) + Integer.parseInt(strArr[1])).length());
            } null != (line = br.readLine()) null (line = br.readLine()) line br.readLine() br.readLine br {
                String[] strArr = line.split(" ");
                System.out.println(String.valueOf(Integer.parseInt(strArr[0]) + Integer.parseInt(strArr[1])).length());
            } String[] strArr = line.split(" "); strArr line.split(" ") line.split line " " System.out.println(String.valueOf(Integer.parseInt(strArr[0]) + Integer.parseInt(strArr[1])).length()) System.out.println System.out System System.out String.valueOf(Integer.parseInt(strArr[0]) + Integer.parseInt(strArr[1])).length() String.valueOf(Integer.parseInt(strArr[0]) + Integer.parseInt(strArr[1])).length String.valueOf(Integer.parseInt(strArr[0]) + Integer.parseInt(strArr[1])) String.valueOf String Integer.parseInt(strArr[0]) + Integer.parseInt(strArr[1]) Integer.parseInt(strArr[0]) Integer.parseInt Integer strArr[0] strArr 0 Integer.parseInt(strArr[1]) Integer.parseInt Integer strArr[1] strArr 1 String[] args args
import java.util.*;
import java.io.*;
import java.math.*;

class Main{
    public static void main(String[] args){
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
        try{
            while(null != (line = br.readLine()))
            {
                String[] strArr = line.split(" ");
                System.out.println(String.valueOf(Integer.parseInt(strArr[0]) + Integer.parseInt(strArr[1])).length());
            }
        }
        catch(Exception e){
        }
    }
}