import java.io.*;
public class Main {
public static void main(String args[]) throws IOException {
BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
while(true){
String s = r.readLine();
if(s == null) break;
int i = s.indexOf(" ");
int sum = Integer.valueOf(s.substring(0, i)) +  Integer.valueOf(s.substring(i+1));
System.out.println(Integer.toString(sum).length());
}
}
} import java.io.*; io.* java public class Main {
public static void main(String args[]) throws IOException {
BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
while(true){
String s = r.readLine();
if(s == null) break;
int i = s.indexOf(" ");
int sum = Integer.valueOf(s.substring(0, i)) +  Integer.valueOf(s.substring(i+1));
System.out.println(Integer.toString(sum).length());
}
}
} Main public static void main(String args[]) throws IOException {
BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
while(true){
String s = r.readLine();
if(s == null) break;
int i = s.indexOf(" ");
int sum = Integer.valueOf(s.substring(0, i)) +  Integer.valueOf(s.substring(i+1));
System.out.println(Integer.toString(sum).length());
}
} main {
BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
while(true){
String s = r.readLine();
if(s == null) break;
int i = s.indexOf(" ");
int sum = Integer.valueOf(s.substring(0, i)) +  Integer.valueOf(s.substring(i+1));
System.out.println(Integer.toString(sum).length());
}
} BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); r new BufferedReader(new InputStreamReader(System.in)) while(true){
String s = r.readLine();
if(s == null) break;
int i = s.indexOf(" ");
int sum = Integer.valueOf(s.substring(0, i)) +  Integer.valueOf(s.substring(i+1));
System.out.println(Integer.toString(sum).length());
} true {
String s = r.readLine();
if(s == null) break;
int i = s.indexOf(" ");
int sum = Integer.valueOf(s.substring(0, i)) +  Integer.valueOf(s.substring(i+1));
System.out.println(Integer.toString(sum).length());
} String s = r.readLine(); s r.readLine() r.readLine r if(s == null) break; s == null s null break; int i = s.indexOf(" "); i s.indexOf(" ") s.indexOf s " " int sum = Integer.valueOf(s.substring(0, i)) +  Integer.valueOf(s.substring(i+1)); sum Integer.valueOf(s.substring(0, i)) +  Integer.valueOf(s.substring(i+1)) Integer.valueOf(s.substring(0, i)) Integer.valueOf Integer s.substring(0, i) s.substring s 0 i Integer.valueOf(s.substring(i+1)) Integer.valueOf Integer s.substring(i+1) s.substring s i+1 i 1 System.out.println(Integer.toString(sum).length()) System.out.println System.out System System.out Integer.toString(sum).length() Integer.toString(sum).length Integer.toString(sum) Integer.toString Integer sum String args[] args public class Main {
public static void main(String args[]) throws IOException {
BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
while(true){
String s = r.readLine();
if(s == null) break;
int i = s.indexOf(" ");
int sum = Integer.valueOf(s.substring(0, i)) +  Integer.valueOf(s.substring(i+1));
System.out.println(Integer.toString(sum).length());
}
}
} public class Main {
public static void main(String args[]) throws IOException {
BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
while(true){
String s = r.readLine();
if(s == null) break;
int i = s.indexOf(" ");
int sum = Integer.valueOf(s.substring(0, i)) +  Integer.valueOf(s.substring(i+1));
System.out.println(Integer.toString(sum).length());
}
}
} Main
import java.io.*;
public class Main {
public static void main(String args[]) throws IOException {
BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
while(true){
String s = r.readLine();
if(s == null) break;
int i = s.indexOf(" ");
int sum = Integer.valueOf(s.substring(0, i)) +  Integer.valueOf(s.substring(i+1));
System.out.println(Integer.toString(sum).length());
}
}
}