import java.util.*;
 
public class Main {
    public static void main(String args[] ) throws Exception {
    	
    	
    	 Scanner sc = new Scanner(System.in);
    	 int count = 0;
    	 
         while (sc.hasNext() && count<201){
             String s = sc.nextLine();
             String[] array = s.split(" ");
             
             int a = Integer.parseInt(array[0]);
             int b = Integer.parseInt(array[1]);
             
             int valLen = String.valueOf(a+b).length();
             System.out.println(valLen);
             
             count++;
        	 }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String args[] ) throws Exception {
    	
    	
    	 Scanner sc = new Scanner(System.in);
    	 int count = 0;
    	 
         while (sc.hasNext() && count<201){
             String s = sc.nextLine();
             String[] array = s.split(" ");
             
             int a = Integer.parseInt(array[0]);
             int b = Integer.parseInt(array[1]);
             
             int valLen = String.valueOf(a+b).length();
             System.out.println(valLen);
             
             count++;
        	 }
    }
} Main public static void main(String args[] ) throws Exception {
    	
    	
    	 Scanner sc = new Scanner(System.in);
    	 int count = 0;
    	 
         while (sc.hasNext() && count<201){
             String s = sc.nextLine();
             String[] array = s.split(" ");
             
             int a = Integer.parseInt(array[0]);
             int b = Integer.parseInt(array[1]);
             
             int valLen = String.valueOf(a+b).length();
             System.out.println(valLen);
             
             count++;
        	 }
    } main {
    	
    	
    	 Scanner sc = new Scanner(System.in);
    	 int count = 0;
    	 
         while (sc.hasNext() && count<201){
             String s = sc.nextLine();
             String[] array = s.split(" ");
             
             int a = Integer.parseInt(array[0]);
             int b = Integer.parseInt(array[1]);
             
             int valLen = String.valueOf(a+b).length();
             System.out.println(valLen);
             
             count++;
        	 }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int count = 0; count 0 while (sc.hasNext() && count<201){
             String s = sc.nextLine();
             String[] array = s.split(" ");
             
             int a = Integer.parseInt(array[0]);
             int b = Integer.parseInt(array[1]);
             
             int valLen = String.valueOf(a+b).length();
             System.out.println(valLen);
             
             count++;
        	 } sc.hasNext() && count<201 sc.hasNext() sc.hasNext sc count<201 count 201 {
             String s = sc.nextLine();
             String[] array = s.split(" ");
             
             int a = Integer.parseInt(array[0]);
             int b = Integer.parseInt(array[1]);
             
             int valLen = String.valueOf(a+b).length();
             System.out.println(valLen);
             
             count++;
        	 } String s = sc.nextLine(); s sc.nextLine() sc.nextLine sc String[] array = s.split(" "); array s.split(" ") s.split s " " int a = Integer.parseInt(array[0]); a Integer.parseInt(array[0]) Integer.parseInt Integer array[0] array 0 int b = Integer.parseInt(array[1]); b Integer.parseInt(array[1]) Integer.parseInt Integer array[1] array 1 int valLen = String.valueOf(a+b).length(); valLen String.valueOf(a+b).length() String.valueOf(a+b).length String.valueOf(a+b) String.valueOf String a+b a b System.out.println(valLen) System.out.println System.out System System.out valLen count++ count String args[] args public class Main {
    public static void main(String args[] ) throws Exception {
    	
    	
    	 Scanner sc = new Scanner(System.in);
    	 int count = 0;
    	 
         while (sc.hasNext() && count<201){
             String s = sc.nextLine();
             String[] array = s.split(" ");
             
             int a = Integer.parseInt(array[0]);
             int b = Integer.parseInt(array[1]);
             
             int valLen = String.valueOf(a+b).length();
             System.out.println(valLen);
             
             count++;
        	 }
    }
} public class Main {
    public static void main(String args[] ) throws Exception {
    	
    	
    	 Scanner sc = new Scanner(System.in);
    	 int count = 0;
    	 
         while (sc.hasNext() && count<201){
             String s = sc.nextLine();
             String[] array = s.split(" ");
             
             int a = Integer.parseInt(array[0]);
             int b = Integer.parseInt(array[1]);
             
             int valLen = String.valueOf(a+b).length();
             System.out.println(valLen);
             
             count++;
        	 }
    }
} Main
import java.util.*;
 
public class Main {
    public static void main(String args[] ) throws Exception {
    	
    	
    	 Scanner sc = new Scanner(System.in);
    	 int count = 0;
    	 
         while (sc.hasNext() && count<201){
             String s = sc.nextLine();
             String[] array = s.split(" ");
             
             int a = Integer.parseInt(array[0]);
             int b = Integer.parseInt(array[1]);
             
             int valLen = String.valueOf(a+b).length();
             System.out.println(valLen);
             
             count++;
        	 }
    }
}