import java.util.Scanner;
  
public class Main {
    public static void main(String[] args){
        int a,b;
        Scanner scanner = new Scanner(System.in);
        while(scanner.hasNext()){
        a = scanner.nextInt();
        b = scanner.nextInt();
        System.out.println((String.valueOf(a+b).length()));
        }
        scanner.close();
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args){
        int a,b;
        Scanner scanner = new Scanner(System.in);
        while(scanner.hasNext()){
        a = scanner.nextInt();
        b = scanner.nextInt();
        System.out.println((String.valueOf(a+b).length()));
        }
        scanner.close();
    }
} Main public static void main(String[] args){
        int a,b;
        Scanner scanner = new Scanner(System.in);
        while(scanner.hasNext()){
        a = scanner.nextInt();
        b = scanner.nextInt();
        System.out.println((String.valueOf(a+b).length()));
        }
        scanner.close();
    } main {
        int a,b;
        Scanner scanner = new Scanner(System.in);
        while(scanner.hasNext()){
        a = scanner.nextInt();
        b = scanner.nextInt();
        System.out.println((String.valueOf(a+b).length()));
        }
        scanner.close();
    } int a a b; b Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) while(scanner.hasNext()){
        a = scanner.nextInt();
        b = scanner.nextInt();
        System.out.println((String.valueOf(a+b).length()));
        } scanner.hasNext() scanner.hasNext scanner {
        a = scanner.nextInt();
        b = scanner.nextInt();
        System.out.println((String.valueOf(a+b).length()));
        } a = scanner.nextInt() a scanner.nextInt() scanner.nextInt scanner b = scanner.nextInt() b scanner.nextInt() scanner.nextInt scanner System.out.println((String.valueOf(a+b).length())) System.out.println System.out System System.out (String.valueOf(a+b).length()) String.valueOf(a+b).length String.valueOf(a+b) String.valueOf String a+b a b scanner.close() scanner.close scanner String[] args args public class Main {
    public static void main(String[] args){
        int a,b;
        Scanner scanner = new Scanner(System.in);
        while(scanner.hasNext()){
        a = scanner.nextInt();
        b = scanner.nextInt();
        System.out.println((String.valueOf(a+b).length()));
        }
        scanner.close();
    }
} public class Main {
    public static void main(String[] args){
        int a,b;
        Scanner scanner = new Scanner(System.in);
        while(scanner.hasNext()){
        a = scanner.nextInt();
        b = scanner.nextInt();
        System.out.println((String.valueOf(a+b).length()));
        }
        scanner.close();
    }
} Main
import java.util.Scanner;
  
public class Main {
    public static void main(String[] args){
        int a,b;
        Scanner scanner = new Scanner(System.in);
        while(scanner.hasNext()){
        a = scanner.nextInt();
        b = scanner.nextInt();
        System.out.println((String.valueOf(a+b).length()));
        }
        scanner.close();
    }
}