import java.util.Scanner;
import java.util.Arrays;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        while(sc.hasNextInt()){
            int x = sc.nextInt();
            int y = sc.nextInt();
            String z = String.valueOf(x + y);
            System.out.println(z.length());
        }
    }
} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        while(sc.hasNextInt()){
            int x = sc.nextInt();
            int y = sc.nextInt();
            String z = String.valueOf(x + y);
            System.out.println(z.length());
        }
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        while(sc.hasNextInt()){
            int x = sc.nextInt();
            int y = sc.nextInt();
            String z = String.valueOf(x + y);
            System.out.println(z.length());
        }
    } main {
        Scanner sc = new Scanner(System.in);
        while(sc.hasNextInt()){
            int x = sc.nextInt();
            int y = sc.nextInt();
            String z = String.valueOf(x + y);
            System.out.println(z.length());
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while(sc.hasNextInt()){
            int x = sc.nextInt();
            int y = sc.nextInt();
            String z = String.valueOf(x + y);
            System.out.println(z.length());
        } sc.hasNextInt() sc.hasNextInt sc {
            int x = sc.nextInt();
            int y = sc.nextInt();
            String z = String.valueOf(x + y);
            System.out.println(z.length());
        } int x = sc.nextInt(); x sc.nextInt() sc.nextInt sc int y = sc.nextInt(); y sc.nextInt() sc.nextInt sc String z = String.valueOf(x + y); z String.valueOf(x + y) String.valueOf String x + y x y System.out.println(z.length()) System.out.println System.out System System.out z.length() z.length z String[] args args public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        while(sc.hasNextInt()){
            int x = sc.nextInt();
            int y = sc.nextInt();
            String z = String.valueOf(x + y);
            System.out.println(z.length());
        }
    }
} public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        while(sc.hasNextInt()){
            int x = sc.nextInt();
            int y = sc.nextInt();
            String z = String.valueOf(x + y);
            System.out.println(z.length());
        }
    }
} Main
import java.util.Scanner;
import java.util.Arrays;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        while(sc.hasNextInt()){
            int x = sc.nextInt();
            int y = sc.nextInt();
            String z = String.valueOf(x + y);
            System.out.println(z.length());
        }
    }
}