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

class Main{
    public static void main(String[] args) throws IOException {
        
        Scanner scan = new Scanner(System.in);
        while (scan.hasNext()){
            int v1 = scan.nextInt();
            int v2 = scan.nextInt();
            String s = String.valueOf(v1 + v2);
            System.out.println(s.length());
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[] args) throws IOException {
        
        Scanner scan = new Scanner(System.in);
        while (scan.hasNext()){
            int v1 = scan.nextInt();
            int v2 = scan.nextInt();
            String s = String.valueOf(v1 + v2);
            System.out.println(s.length());
        }
    }
} Main public static void main(String[] args) throws IOException {
        
        Scanner scan = new Scanner(System.in);
        while (scan.hasNext()){
            int v1 = scan.nextInt();
            int v2 = scan.nextInt();
            String s = String.valueOf(v1 + v2);
            System.out.println(s.length());
        }
    } main {
        
        Scanner scan = new Scanner(System.in);
        while (scan.hasNext()){
            int v1 = scan.nextInt();
            int v2 = scan.nextInt();
            String s = String.valueOf(v1 + v2);
            System.out.println(s.length());
        }
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) while (scan.hasNext()){
            int v1 = scan.nextInt();
            int v2 = scan.nextInt();
            String s = String.valueOf(v1 + v2);
            System.out.println(s.length());
        } scan.hasNext() scan.hasNext scan {
            int v1 = scan.nextInt();
            int v2 = scan.nextInt();
            String s = String.valueOf(v1 + v2);
            System.out.println(s.length());
        } int v1 = scan.nextInt(); v1 scan.nextInt() scan.nextInt scan int v2 = scan.nextInt(); v2 scan.nextInt() scan.nextInt scan String s = String.valueOf(v1 + v2); s String.valueOf(v1 + v2) String.valueOf String v1 + v2 v1 v2 System.out.println(s.length()) System.out.println System.out System System.out s.length() s.length s String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;

class Main{
    public static void main(String[] args) throws IOException {
        
        Scanner scan = new Scanner(System.in);
        while (scan.hasNext()){
            int v1 = scan.nextInt();
            int v2 = scan.nextInt();
            String s = String.valueOf(v1 + v2);
            System.out.println(s.length());
        }
    }
}