import java.util.Scanner;
import java.lang.Math;

public class Main
{
  public static void main(String[] args)
  {
  Scanner in=new Scanner(System.in);
  
  while(in.hasNext())
  {
    int a , b , len=1, l;
    
    a=in.nextInt();
    b=in.nextInt();
   
    l=a+b;
    
    if(l==0) System.out.println(len);
    
    else
    {
       len=(int) Math.log10(l)+1;
    
    System.out.println(len);
    }
    
   
  }
      }
    }
  import java.util.Scanner; Scanner java.util import java.lang.Math; Math java.lang public class Main
{
  public static void main(String[] args)
  {
  Scanner in=new Scanner(System.in);
  
  while(in.hasNext())
  {
    int a , b , len=1, l;
    
    a=in.nextInt();
    b=in.nextInt();
   
    l=a+b;
    
    if(l==0) System.out.println(len);
    
    else
    {
       len=(int) Math.log10(l)+1;
    
    System.out.println(len);
    }
    
   
  }
      }
    } Main public static void main(String[] args)
  {
  Scanner in=new Scanner(System.in);
  
  while(in.hasNext())
  {
    int a , b , len=1, l;
    
    a=in.nextInt();
    b=in.nextInt();
   
    l=a+b;
    
    if(l==0) System.out.println(len);
    
    else
    {
       len=(int) Math.log10(l)+1;
    
    System.out.println(len);
    }
    
   
  }
      } main {
  Scanner in=new Scanner(System.in);
  
  while(in.hasNext())
  {
    int a , b , len=1, l;
    
    a=in.nextInt();
    b=in.nextInt();
   
    l=a+b;
    
    if(l==0) System.out.println(len);
    
    else
    {
       len=(int) Math.log10(l)+1;
    
    System.out.println(len);
    }
    
   
  }
      } Scanner in=new Scanner(System.in); in new Scanner(System.in) while(in.hasNext())
  {
    int a , b , len=1, l;
    
    a=in.nextInt();
    b=in.nextInt();
   
    l=a+b;
    
    if(l==0) System.out.println(len);
    
    else
    {
       len=(int) Math.log10(l)+1;
    
    System.out.println(len);
    }
    
   
  } in.hasNext() in.hasNext in {
    int a , b , len=1, l;
    
    a=in.nextInt();
    b=in.nextInt();
   
    l=a+b;
    
    if(l==0) System.out.println(len);
    
    else
    {
       len=(int) Math.log10(l)+1;
    
    System.out.println(len);
    }
    
   
  } int a a b b len=1 len 1 l; l a=in.nextInt() a in.nextInt() in.nextInt in b=in.nextInt() b in.nextInt() in.nextInt in l=a+b l a+b a b if(l==0) System.out.println(len);
    
    else
    {
       len=(int) Math.log10(l)+1;
    
    System.out.println(len);
    } l==0 l 0 System.out.println(len) System.out.println System.out System System.out len {
       len=(int) Math.log10(l)+1;
    
    System.out.println(len);
    } len=(int) Math.log10(l)+1 len (int) Math.log10(l)+1 (int) Math.log10(l) Math.log10 Math l 1 System.out.println(len) System.out.println System.out System System.out len String[] args args public class Main
{
  public static void main(String[] args)
  {
  Scanner in=new Scanner(System.in);
  
  while(in.hasNext())
  {
    int a , b , len=1, l;
    
    a=in.nextInt();
    b=in.nextInt();
   
    l=a+b;
    
    if(l==0) System.out.println(len);
    
    else
    {
       len=(int) Math.log10(l)+1;
    
    System.out.println(len);
    }
    
   
  }
      }
    } public class Main
{
  public static void main(String[] args)
  {
  Scanner in=new Scanner(System.in);
  
  while(in.hasNext())
  {
    int a , b , len=1, l;
    
    a=in.nextInt();
    b=in.nextInt();
   
    l=a+b;
    
    if(l==0) System.out.println(len);
    
    else
    {
       len=(int) Math.log10(l)+1;
    
    System.out.println(len);
    }
    
   
  }
      }
    } Main
import java.util.Scanner;
import java.lang.Math;

public class Main
{
  public static void main(String[] args)
  {
  Scanner in=new Scanner(System.in);
  
  while(in.hasNext())
  {
    int a , b , len=1, l;
    
    a=in.nextInt();
    b=in.nextInt();
   
    l=a+b;
    
    if(l==0) System.out.println(len);
    
    else
    {
       len=(int) Math.log10(l)+1;
    
    System.out.println(len);
    }
    
   
  }
      }
    }
 