import java.util.*;

public class Main {
    public static void main(String[] args) {

    Scanner scan = new Scanner(System.in);
    
    int a,b,total;
    while(scan.hasNextInt()){
    a= scan.nextInt();
    b= scan.nextInt();
    total = a+b;
    int i=1;
    while(true){
        total = total /10;
        if (total == 0){
           System.out.println(i);
           break;
        }
        i++;
    }
    }
    
    
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {

    Scanner scan = new Scanner(System.in);
    
    int a,b,total;
    while(scan.hasNextInt()){
    a= scan.nextInt();
    b= scan.nextInt();
    total = a+b;
    int i=1;
    while(true){
        total = total /10;
        if (total == 0){
           System.out.println(i);
           break;
        }
        i++;
    }
    }
    
    
    }
} Main public static void main(String[] args) {

    Scanner scan = new Scanner(System.in);
    
    int a,b,total;
    while(scan.hasNextInt()){
    a= scan.nextInt();
    b= scan.nextInt();
    total = a+b;
    int i=1;
    while(true){
        total = total /10;
        if (total == 0){
           System.out.println(i);
           break;
        }
        i++;
    }
    }
    
    
    } main {

    Scanner scan = new Scanner(System.in);
    
    int a,b,total;
    while(scan.hasNextInt()){
    a= scan.nextInt();
    b= scan.nextInt();
    total = a+b;
    int i=1;
    while(true){
        total = total /10;
        if (total == 0){
           System.out.println(i);
           break;
        }
        i++;
    }
    }
    
    
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a a b b total; total while(scan.hasNextInt()){
    a= scan.nextInt();
    b= scan.nextInt();
    total = a+b;
    int i=1;
    while(true){
        total = total /10;
        if (total == 0){
           System.out.println(i);
           break;
        }
        i++;
    }
    } scan.hasNextInt() scan.hasNextInt scan {
    a= scan.nextInt();
    b= scan.nextInt();
    total = a+b;
    int i=1;
    while(true){
        total = total /10;
        if (total == 0){
           System.out.println(i);
           break;
        }
        i++;
    }
    } a= scan.nextInt() a scan.nextInt() scan.nextInt scan b= scan.nextInt() b scan.nextInt() scan.nextInt scan total = a+b total a+b a b int i=1; i 1 while(true){
        total = total /10;
        if (total == 0){
           System.out.println(i);
           break;
        }
        i++;
    } true {
        total = total /10;
        if (total == 0){
           System.out.println(i);
           break;
        }
        i++;
    } total = total /10 total total /10 total 10 if (total == 0){
           System.out.println(i);
           break;
        } total == 0 total 0 {
           System.out.println(i);
           break;
        } System.out.println(i) System.out.println System.out System System.out i break; i++ i String[] args args public class Main {
    public static void main(String[] args) {

    Scanner scan = new Scanner(System.in);
    
    int a,b,total;
    while(scan.hasNextInt()){
    a= scan.nextInt();
    b= scan.nextInt();
    total = a+b;
    int i=1;
    while(true){
        total = total /10;
        if (total == 0){
           System.out.println(i);
           break;
        }
        i++;
    }
    }
    
    
    }
} public class Main {
    public static void main(String[] args) {

    Scanner scan = new Scanner(System.in);
    
    int a,b,total;
    while(scan.hasNextInt()){
    a= scan.nextInt();
    b= scan.nextInt();
    total = a+b;
    int i=1;
    while(true){
        total = total /10;
        if (total == 0){
           System.out.println(i);
           break;
        }
        i++;
    }
    }
    
    
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {

    Scanner scan = new Scanner(System.in);
    
    int a,b,total;
    while(scan.hasNextInt()){
    a= scan.nextInt();
    b= scan.nextInt();
    total = a+b;
    int i=1;
    while(true){
        total = total /10;
        if (total == 0){
           System.out.println(i);
           break;
        }
        i++;
    }
    }
    
    
    }
}