import java.util.*;

class Main{
public static void main(String[] args){
int a;
int b;
Scanner sc=new Scanner(System.in);
while(sc.hasNextInt()){
a=sc.nextInt();
b=sc.nextInt();
int d=(int)Math.log10(a+b)+1;
System.out.println(d);
}
}
} import java.util.*; util.* java class Main{
public static void main(String[] args){
int a;
int b;
Scanner sc=new Scanner(System.in);
while(sc.hasNextInt()){
a=sc.nextInt();
b=sc.nextInt();
int d=(int)Math.log10(a+b)+1;
System.out.println(d);
}
}
} Main public static void main(String[] args){
int a;
int b;
Scanner sc=new Scanner(System.in);
while(sc.hasNextInt()){
a=sc.nextInt();
b=sc.nextInt();
int d=(int)Math.log10(a+b)+1;
System.out.println(d);
}
} main {
int a;
int b;
Scanner sc=new Scanner(System.in);
while(sc.hasNextInt()){
a=sc.nextInt();
b=sc.nextInt();
int d=(int)Math.log10(a+b)+1;
System.out.println(d);
}
} int a; a int b; b Scanner sc=new Scanner(System.in); sc new Scanner(System.in) while(sc.hasNextInt()){
a=sc.nextInt();
b=sc.nextInt();
int d=(int)Math.log10(a+b)+1;
System.out.println(d);
} sc.hasNextInt() sc.hasNextInt sc {
a=sc.nextInt();
b=sc.nextInt();
int d=(int)Math.log10(a+b)+1;
System.out.println(d);
} a=sc.nextInt() a sc.nextInt() sc.nextInt sc b=sc.nextInt() b sc.nextInt() sc.nextInt sc int d=(int)Math.log10(a+b)+1; d (int)Math.log10(a+b)+1 (int)Math.log10(a+b) Math.log10 Math a+b a b 1 System.out.println(d) System.out.println System.out System System.out d String[] args args
import java.util.*;

class Main{
public static void main(String[] args){
int a;
int b;
Scanner sc=new Scanner(System.in);
while(sc.hasNextInt()){
a=sc.nextInt();
b=sc.nextInt();
int d=(int)Math.log10(a+b)+1;
System.out.println(d);
}
}
}