import java.util.*;

class Main{
 public static void main(String[] args){
  Scanner s = new Scanner(System.in);

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

while(s.hasNext()){
 int a = s.nextInt();
 int b = s.nextInt();
 a += b;
 String c = String.valueOf(a);
 System.out.println(c.length());
  }
 }
} Main public static void main(String[] args){
  Scanner s = new Scanner(System.in);

while(s.hasNext()){
 int a = s.nextInt();
 int b = s.nextInt();
 a += b;
 String c = String.valueOf(a);
 System.out.println(c.length());
  }
 } main {
  Scanner s = new Scanner(System.in);

while(s.hasNext()){
 int a = s.nextInt();
 int b = s.nextInt();
 a += b;
 String c = String.valueOf(a);
 System.out.println(c.length());
  }
 } Scanner s = new Scanner(System.in); s new Scanner(System.in) while(s.hasNext()){
 int a = s.nextInt();
 int b = s.nextInt();
 a += b;
 String c = String.valueOf(a);
 System.out.println(c.length());
  } s.hasNext() s.hasNext s {
 int a = s.nextInt();
 int b = s.nextInt();
 a += b;
 String c = String.valueOf(a);
 System.out.println(c.length());
  } int a = s.nextInt(); a s.nextInt() s.nextInt s int b = s.nextInt(); b s.nextInt() s.nextInt s a += b a b String c = String.valueOf(a); c String.valueOf(a) String.valueOf String a System.out.println(c.length()) System.out.println System.out System System.out c.length() c.length c String[] args args
import java.util.*;

class Main{
 public static void main(String[] args){
  Scanner s = new Scanner(System.in);

while(s.hasNext()){
 int a = s.nextInt();
 int b = s.nextInt();
 a += b;
 String c = String.valueOf(a);
 System.out.println(c.length());
  }
 }
}